changeset 9427:d37c0f4e8f48

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.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Thu, 27 Aug 2009 14:15:04 +0200
parents 799373ff2554
children 5d6659cfaa06
files mercurial/parsers.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)