diff options
author | Christian Heimes <christian@cheimes.de> | 2013-06-29 20:52:33 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-06-29 20:52:33 +0200 |
commit | 29a36ce4238ed119c966722fcd74c4e7e9273134 (patch) | |
tree | 73f152c3e096a619265d4cbf0f60665fbc8fc195 /Modules/_datetimemodule.c | |
parent | 008898dfb5beb0804b5d9a7d3e8a863bbd3b8880 (diff) | |
download | cpython-29a36ce4238ed119c966722fcd74c4e7e9273134.tar.gz |
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.
Diffstat (limited to 'Modules/_datetimemodule.c')
-rw-r--r-- | Modules/_datetimemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 46f38c5e82..34205a4391 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -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; |