commit | bbfd859521073e1e399f91b78016d621a78e60d1 | [log] [tgz] |
---|---|---|
author | Just van Rossum <just@letterror.com> | Sun Dec 15 13:45:32 2002 +0000 |
committer | Just van Rossum <just@letterror.com> | Sun Dec 15 13:45:32 2002 +0000 |
tree | ffc6bd7a7f22293006f9dd9921dc4e04ea0d5a5e | |
parent | edd179ee7789d2938c973880027a54be7d817e6d [diff] |
Fixed potential crash: v can be NULL here, so use Py_XDECREF rather than Py_DECREF
diff --git a/Python/modsupport.c b/Python/modsupport.c index 98b0341..a2a095e 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c
@@ -78,7 +78,7 @@ if (doc != NULL) { v = PyString_FromString(doc); if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) { - Py_DECREF(v); + Py_XDECREF(v); return NULL; } Py_DECREF(v);