From: <kk...@us...> - 2008-11-07 11:03:46
|
Revision: 1155 http://omc.svn.sourceforge.net/omc/?rev=1155&view=rev Author: kkaempf Date: 2008-11-07 11:03:43 +0000 (Fri, 07 Nov 2008) Log Message: ----------- don't call Py_DecRef on NULL Modified Paths: -------------- cmpi-bindings/trunk/src/target_python.c Modified: cmpi-bindings/trunk/src/target_python.c =================================================================== --- cmpi-bindings/trunk/src/target_python.c 2008-11-06 16:28:25 UTC (rev 1154) +++ cmpi-bindings/trunk/src/target_python.c 2008-11-07 11:03:43 UTC (rev 1155) @@ -295,9 +295,9 @@ } rc = pi != 0; cleanup: - Py_DecRef(pyargs); - Py_DecRef(pyfunc); - Py_DecRef(prv); + if (pyargs) Py_DecRef(pyargs); + if (pyfunc) Py_DecRef(pyfunc); + if (prv) Py_DecRef(prv); return rc; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |