[PATCH] parsers: fix memory leak in compute_phases_map_sets

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Aug 7 01:49:10 CDT 2015


On 08/06/2015 11:01 PM, Laurent Charignon wrote:
> # HG changeset patch
> # User Laurent Charignon <lcharignon at fb.com>
> # Date 1438926868 25200
> #      Thu Aug 06 22:54:28 2015 -0700
> # Branch stable
> # Node ID 219562bcc696de725990f9f103b380aefa1abd66
> # Parent  79f0cb97d7537a7c2948f8f9b0a89148825a3a1d
> parsers: fix memory leak in compute_phases_map_sets

Nice, pushed to the clowncopter

(The stable branch called, they want their patch back)

> PySet_Add increments the reference of the added object to the set, see:
> https://github.com/python/cpython/blob/2.6/Objects/setobject.c

I did not resist the urge to update this to the canonical url, on 
http://hg.python.org

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list