From 6bfa1437bbddf00b4bd68538038968ae49c1e7fe 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/SWIG@6995 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyrun.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 14e39dbf7..d43aef007 100644 --- a/Lib/python/pyrun.swg +++ b/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; } }