Skip to content

Commit 628759d

Browse files
committed
Fixing memory leak.
1 parent c142ef2 commit 628759d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypyc/lib-rt/misc_ops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ CPyDataclass_SleightOfHand(PyObject *dataclass_dec, PyObject *tp,
399399
goto fail;
400400
}
401401

402+
Py_DECREF(res);
402403
Py_DECREF(orig_dict);
403404
return 1;
404405

0 commit comments

Comments
 (0)