parsers: add a missed PyErr_NoMemory
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 14 Dec 2015 10:47:27 -0800
changeset 27366 7e8a883da171
parent 27365 ec04370bdfaf
child 27367 8833daddfc3f
parsers: add a missed PyErr_NoMemory
mercurial/parsers.c
--- a/mercurial/parsers.c	Mon Dec 14 10:47:26 2015 -0800
+++ b/mercurial/parsers.c	Mon Dec 14 10:47:27 2015 -0800
@@ -1411,8 +1411,10 @@
 	}
 
 	nothead = calloc(len, 1);
-	if (nothead == NULL)
+	if (nothead == NULL) {
+		PyErr_NoMemory();
 		goto bail;
+	}
 
 	for (i = 0; i < len; i++) {
 		int isfiltered;