diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 13:41:34 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 13:41:34 (GMT) |
commit | 191321d11bc7e064e1a07830a43fa600de310e1b (patch) | |
tree | 083b269838ac1e7dbea54ead1a4b79e99dbf4891 /Objects/unicodeobject.c | |
parent | 4a1e70fc31d224786a32f950edaf73c8ea9c194d (diff) | |
download | cpython-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.c | 2 |
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); |