parsers.c: do not try to untrack after a failure
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 19 Oct 2008 20:17:06 +0200
changeset 7175 5d8626b2c1db
parent 7174 4da87407b845
child 7176 14848fc8e26c
parsers.c: do not try to untrack after a failure
mercurial/parsers.c
--- a/mercurial/parsers.c	Sun Oct 19 20:16:37 2008 +0200
+++ b/mercurial/parsers.c	Sun Oct 19 20:17:06 2008 +0200
@@ -202,9 +202,9 @@
 		}
 
 		entry = Py_BuildValue("ciii", state, mode, size, mtime);
-		PyObject_GC_UnTrack(entry); /* don't waste time with this */
 		if (!entry)
 			goto quit;
+		PyObject_GC_UnTrack(entry); /* don't waste time with this */
 
 		cpos = memchr(cur, 0, flen);
 		if (cpos) {