Skip to content

Commit

Permalink
Fix possible refleak in CodeType.replace()
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Jun 29, 2023
1 parent fb0d9b9 commit 226b009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objects/codeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,7 @@ code_replace_impl(PyCodeObject *self, int co_argcount,
co_code, co_filename, co_name, co_argcount,
co_posonlyargcount, co_kwonlyargcount, co_nlocals,
co_stacksize, co_flags) < 0) {
Py_XDECREF(code);
return NULL;
}

Expand Down

0 comments on commit 226b009

Please sign in to comment.