#640 Memory Leak in Safearray Conversion

open
nobody
None
5
2013-05-03
2013-05-03
Stefan Schukat
No

In the method PyCom_PyObjectFromSAFEARRAYDimensionItem elements are retrieved via the SafeArrayGetElement method. The SafeArrayGetElement method always returns a copy of the internal data. In case of BSTR, IDispatch and IUnkown these copies are not freed or attached to a Python object. This patch attaches the returned values to the corresponding Python objects.

Discussion