Menu

Commit [r19607]  Maximize  Restore  History

Big bug fix for a memory leak in the relaxation curve-fitting C module.

Proper reference counting is used for the temporary 'element' Python objects used in the conversion
between Python and C objects. The use of the Py_CLEAR() macro removes the memory leak. However the
number of references as seen by sys.gettotalrefcount() in a debugging Python version keeps rising
and might be a problem in the future.

bugman 2013-04-29

changed /trunk/target_functions/relax_fit.c
/trunk/target_functions/relax_fit.c Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.