Skip to content

Commit b4c2e93

Browse files
fix negative refcount
1 parent 05b822f commit b4c2e93

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Python/optimizer_symbols.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,6 @@ _Py_uop_sym_new_const_steal(JitOptContext *ctx, PyObject *const_val)
439439
JitOptSymbol *res = _Py_uop_sym_new_const(ctx, const_val);
440440
// Decref once because sym_new_const increfs it.
441441
Py_DECREF(const_val);
442-
// Decref it another time, because we are a steal operation.
443-
// (Ownership now belongs to the symbol).
444-
Py_DECREF(const_val);
445442
return res;
446443
}
447444

0 commit comments

Comments
 (0)