changeset 27366:7e8a883da171

parsers: add a missed PyErr_NoMemory
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 14 Dec 2015 10:47:27 -0800
parents ec04370bdfaf
children 8833daddfc3f
files mercurial/parsers.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;