Commit b91ffaa1 authored by Christian Heimes's avatar Christian Heimes

Fix NULL ptr dereferencing in local_timezone(). nameo can be NULL

CID 1040362 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
var_deref_op: Dereferencing null pointer _py_decref_tmp.
parent b5821557
...@@ -4749,7 +4749,7 @@ local_timezone(PyDateTime_DateTime *utc_time) ...@@ -4749,7 +4749,7 @@ local_timezone(PyDateTime_DateTime *utc_time)
goto error; goto error;
} }
result = new_timezone(delta, nameo); result = new_timezone(delta, nameo);
Py_DECREF(nameo); Py_XDECREF(nameo);
error: error:
Py_DECREF(delta); Py_DECREF(delta);
return result; return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment