changeset 23947:2cb49fba9736 stable

parsers: don't leak a reference to raise_revlog_error on success Found with cpychecker.
author Augie Fackler <augie@google.com>
date Fri, 23 Jan 2015 15:50:40 -0500
parents f3e94aa6e182
children bd307b462ce2
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parsers.c	Fri Jan 23 15:48:18 2015 -0500
+++ b/mercurial/parsers.c	Fri Jan 23 15:50:40 2015 -0500
@@ -1262,6 +1262,7 @@
 			goto classfail;
 		}
 		Py_INCREF(errclass);
+		Py_DECREF(mod);
 	}
 
 	errobj = PyObject_CallFunction(errclass, NULL);