summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 246b9a4..a59a1c9 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1482,11 +1482,10 @@ eval_code2(co, globals, locals,
object *key = POP();
err = mappinginsert(
kwdict, key, value);
- if (err) {
- DECREF(key);
- DECREF(value);
+ DECREF(key);
+ DECREF(value);
+ if (err)
break;
- }
}
if (err) {
DECREF(args);