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 19 2012, 10:15
Parents
R3600:330f7c36d750: intbitset: fix never ending loop in __repr__
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:f359314f066b: intbitset: fix several memory leaks (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Feb 19 2012, 10:15