summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-27 13:44:33 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-27 13:44:33 (GMT)
commit726fc139a5f40d81a0013c856be1283da08de4a0 (patch)
tree7a7fe3b19e13842df5b5d45a8567fbfb5e7bbd75 /Objects/unicodeobject.c
parentbdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea (diff)
parent191321d11bc7e064e1a07830a43fa600de310e1b (diff)
downloadcpython-726fc139a5f40d81a0013c856be1283da08de4a0.zip
cpython-726fc139a5f40d81a0013c856be1283da08de4a0.tar.gz
cpython-726fc139a5f40d81a0013c856be1283da08de4a0.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 bda2469..fb79bd9 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -14443,8 +14443,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);