Mercurial > hg
comparison mercurial/manifest.c @ 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 | 89c2bf63a83b |
children | 7b8b6e3b3571 |
comparison
equal
deleted
inserted
replaced
25900:d14590f90cb6 | 25911:f4386cb3252e |
---|