Skip to content

Commit 8b2c827

Browse files
committed
Merge remote-tracking branch 'upstream/main' into gh-91484
2 parents 6678890 + a096314 commit 8b2c827

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Objects/codeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ _PyCode_New(struct _PyCodeConstructor *con)
748748
#endif
749749

750750
if (init_code(co, con) < 0) {
751+
Py_XDECREF(replacement_locations);
751752
Py_DECREF(co);
752753
return NULL;
753754
}

0 commit comments

Comments
 (0)