changeset 27609:ca2d4080a02e

lazymanifest: check error return in filter
author Augie Fackler <raf@durin42.com>
date Thu, 31 Dec 2015 13:45:48 -0500
parents d6aa1a8c8d7c
children b8405d739149
files mercurial/manifest.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.c	Thu Dec 31 13:44:59 2015 -0500
+++ b/mercurial/manifest.c	Thu Dec 31 13:45:48 2015 -0500
@@ -694,6 +694,9 @@
 		goto nomem;
 	}
 	copy = PyObject_New(lazymanifest, &lazymanifestType);
+	if (!copy) {
+		goto nomem;
+	}
 	copy->dirty = true;
 	copy->lines = malloc(self->maxlines * sizeof(line));
 	if (!copy->lines) {