mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Avoid a possible null deref, tz might be NULL.
Found by clang static analyzer.
This commit is contained in:
parent
61764ea581
commit
e3ba21039c
|
@ -451,7 +451,7 @@ psyco_TimestampFromTicks(PyObject *self, PyObject *args)
|
||||||
tz);
|
tz);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
Py_DECREF(tz);
|
Py_XDECREF(tz);
|
||||||
Py_XDECREF(m);
|
Py_XDECREF(m);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user