Skip to content

Commit cc94c37

Browse files
committed
Fix memory leak in PyCXX.
svn path=/branches/v1_0_maint/; revision=8810
1 parent 8de9241 commit cc94c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CXX/Python2/ExtensionOldType.hxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ namespace Py
173173
Tuple self( 2 );
174174

175175
self[0] = Object( this );
176-
self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) );
176+
self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
177177

178178
PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() );
179179

0 commit comments

Comments
 (0)