From cd5aa31041d80fabfd9e94f7965ee6dc77044a6d Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 24 Feb 2005 20:40:21 +0000 Subject: [PATCH] fix seg. fault after error report git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6995 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pyrun.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Lib/python/pyrun.swg b/SWIG/Lib/python/pyrun.swg index 14e39dbf7..d43aef007 100644 --- a/SWIG/Lib/python/pyrun.swg +++ b/SWIG/Lib/python/pyrun.swg @@ -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; } }