comparison mercurial/cmdutil.py @ 25911:f4386cb3252e stable

parsers: fix memory leak in compute_phases_map_sets PySet_Add increments the reference of the added object to the set, see: https://hg.python.org/cpython/file/2.6/Objects/setobject.c#l379 Before this patch we were forgetting to decrement the reference count after adding objects to the phaseset. This patch fixes the issue and makes the reference count right so that these objects can be properly garbage collected.
author Laurent Charignon <lcharignon@fb.com>
date Thu, 06 Aug 2015 22:54:28 -0700
parents 69145daacdfa
children 221491bbaf7e
comparison
equal deleted inserted replaced
25900:d14590f90cb6 25911:f4386cb3252e