mercurial/parsers.c
branchstable
changeset 23942 fefa5f2a1730
parent 23468 ee311681e591
child 23943 5fb44983a696
--- a/mercurial/parsers.c	Fri Jan 23 18:41:37 2015 +0100
+++ b/mercurial/parsers.c	Fri Jan 23 15:19:04 2015 -0500
@@ -115,6 +115,7 @@
 				"ascii", str, len, i, (i + 1),
 				"unexpected code byte");
 			PyErr_SetObject(PyExc_UnicodeDecodeError, err);
+			Py_XDECREF(err);
 			goto quit;
 		}
 		newstr[i] = lowertable[(unsigned char)c];