fix seg. fault after error report
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
29a6966f74
commit
cd5aa31041
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ SWIG_Python_TypeError(const char *type, PyObject *obj)
|
|||
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
|
||||
type, otype);
|
||||
}
|
||||
Py_DECREF(str);
|
||||
Py_XDECREF(str);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue