You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/08/05 19:56:55 UTC

svn commit: r1154327 - /subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c

Author: hwright
Date: Fri Aug  5 17:56:54 2011
New Revision: 1154327

URL: http://svn.apache.org/viewvc?rev=1154327&view=rev
Log:
On the fs-py branch:
Be a little more forgiving when cleaning up the Python interpreter.

* subversion/libsvn_fs_py/py_util.c
  (finalize_python): Use Py_XDECREF(), which checks for NULL pointers.

Modified:
    subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c

Modified: subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c
URL: http://svn.apache.org/viewvc/subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c?rev=1154327&r1=1154326&r2=1154327&view=diff
==============================================================================
--- subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c (original)
+++ subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c Fri Aug  5 17:56:54 2011
@@ -90,9 +90,9 @@ load_error:
 static apr_status_t
 finalize_python(void *data)
 {
-  Py_DECREF(p_exception_type);
+  Py_XDECREF(p_exception_type);
   p_exception_type = NULL;
-  Py_DECREF(p_root_module);
+  Py_XDECREF(p_root_module);
   p_root_module = NULL;
 
   /* Cleanup the python interpreter. */