summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-27 13:41:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-27 13:41:34 (GMT)
commit191321d11bc7e064e1a07830a43fa600de310e1b (patch)
tree083b269838ac1e7dbea54ead1a4b79e99dbf4891 /Objects/unicodeobject.c
parent4a1e70fc31d224786a32f950edaf73c8ea9c194d (diff)
downloadcpython-191321d11bc7e064e1a07830a43fa600de310e1b.zip
cpython-191321d11bc7e064e1a07830a43fa600de310e1b.tar.gz
cpython-191321d11bc7e064e1a07830a43fa600de310e1b.tar.bz2
Issue #20440: More use of Py_SETREF.
This patch is manually crafted and contains changes that couldn't be handled automatically.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c5b35e1..c957929 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -14191,8 +14191,8 @@ unicode_format_arg_parse(struct unicode_formatter_t *ctx,
if (key == NULL)
return -1;
if (ctx->args_owned) {
- Py_DECREF(ctx->args);
ctx->args_owned = 0;
+ Py_DECREF(ctx->args);
}
ctx->args = PyObject_GetItem(ctx->dict, key);
Py_DECREF(key);