Fixed memory leak with --builtin (bug 3385089)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12782 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e82f320510
commit
86e1051a8b
2 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ wrapper##_closure(PyObject *a) { \
|
|||
PyObject *o = wrapper(a, NULL); \
|
||||
Py_XDECREF(o); \
|
||||
} \
|
||||
PyObject_Del(a); \
|
||||
}
|
||||
|
||||
#define SWIGPY_INQUIRY_CLOSURE(wrapper) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue