From: <md...@us...> - 2009-04-23 14:21:56
|
Revision: 7059 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7059&view=rev Author: mdboom Date: 2009-04-23 14:21:52 +0000 (Thu, 23 Apr 2009) Log Message: ----------- Fix theoretical memory leak. Modified Paths: -------------- trunk/matplotlib/src/_path.cpp Modified: trunk/matplotlib/src/_path.cpp =================================================================== --- trunk/matplotlib/src/_path.cpp 2009-04-23 14:21:38 UTC (rev 7058) +++ trunk/matplotlib/src/_path.cpp 2009-04-23 14:21:52 UTC (rev 7059) @@ -569,6 +569,7 @@ (PyArray_NDIM(offsets) == 2 && PyArray_DIM(offsets, 1) != 2) || (PyArray_NDIM(offsets) == 1 && PyArray_DIM(offsets, 0) != 0)) { + Py_XDECREF(offsets); throw Py::ValueError("Offsets array must be Nx2"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |