parsers.c: parse_manifest: fixing refcount of flags
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 27 Aug 2009 14:15:04 +0200
changeset 9427 d37c0f4e8f48
parent 9424 799373ff2554
child 9428 5d6659cfaa06
parsers.c: parse_manifest: fixing refcount of flags When flags was DECREF'ed, scope was referencing to the outer variable, outside of the block. It was in fact always NULL: the real Python object was never decref'ed.
mercurial/parsers.c
--- a/mercurial/parsers.c	Sat Aug 29 15:24:15 2009 +0900
+++ b/mercurial/parsers.c	Thu Aug 27 14:15:04 2009 +0200
@@ -92,8 +92,6 @@
 			goto bail;
 
 		if (nlen > 40) {
-			PyObject *flags;
-
 			flags = PyString_FromStringAndSize(zero + 41,
 							   nlen - 40);
 			if (!flags)