mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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.
This commit is contained in:
parent
b582155789
commit
b91ffaa1d8
1 changed files with 1 additions and 1 deletions
|
|
@ -4749,7 +4749,7 @@ local_timezone(PyDateTime_DateTime *utc_time)
|
|||
goto error;
|
||||
}
|
||||
result = new_timezone(delta, nameo);
|
||||
Py_DECREF(nameo);
|
||||
Py_XDECREF(nameo);
|
||||
error:
|
||||
Py_DECREF(delta);
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue