Homec4science

intbitset: fix several memory leaks

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Feb 22 2011, 04:33.

Description

intbitset: fix several memory leaks

  • fix memory leaks in all set operations (due to partial allocation of intbitset structure which is then discarded.
  • fix memory leaks when intbitset constructor raises an exception.
  • use native Python memory management (i.e. PyMem_Malloc/PyMem_Free).
  • intbitset to support weak references.
  • improve implementation of strbits and repr method.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Feb 22 2011, 10:05
Parents
R3600:137e4976c186: BibRank: fix creation of classic citation graph
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:1d323eced62c: intbitset: fix several memory leaks (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Feb 22 2011, 10:05