mercurial/parsers.c
changeset 7175 5d8626b2c1db
parent 7174 4da87407b845
child 7176 14848fc8e26c
--- 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) {