lazymanifest: check error return in filter
authorAugie Fackler <raf@durin42.com>
Thu, 31 Dec 2015 13:45:48 -0500
changeset 27609 ca2d4080a02e
parent 27608 d6aa1a8c8d7c
child 27610 b8405d739149
lazymanifest: check error return in filter
mercurial/manifest.c
--- 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) {