1
1
mirror of https://github.com/psycopg/psycopg2.git synced 2025-04-18 15:32:00 +03:00

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
parent 732ea90a4f
commit 5ce00f8e5b

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;
}