changeset 7175:5d8626b2c1db

parsers.c: do not try to untrack after a failure
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 19 Oct 2008 20:17:06 +0200
parents 4da87407b845
children 14848fc8e26c
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {