changeset 26033:9e7d805925c8

reachableroots: fix memleak of integer objects at includepath loop In the first visit loop, val is decref-ed correctly after PySet_Add(). Let's do the same for the includepath loop.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 14 Aug 2015 12:36:41 +0900
parents a3d5da8b641e
children 1d829f802fab
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parsers.c	Fri Aug 14 12:31:56 2015 +0900
+++ b/mercurial/parsers.c	Fri Aug 14 12:36:41 2015 +0900
@@ -1232,6 +1232,7 @@
 						if (val == NULL)
 							goto bail;
 						PySet_Add(reachable, val);
+						Py_DECREF(val);
 					}
 					Py_DECREF(p);
 				}