Avoid a possible null deref, tz might be NULL.

Found by clang static analyzer.
This commit is contained in:
Gabriel Kihlman 2016-04-18 17:28:50 +02:00 committed by Daniele Varrazzo
parent 61764ea581
commit e3ba21039c

View File

@ -451,7 +451,7 @@ psyco_TimestampFromTicks(PyObject *self, PyObject *args)
tz);
exit:
Py_DECREF(tz);
Py_XDECREF(tz);
Py_XDECREF(m);
return res;
}