Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12c5247

Browse files
Issue #21226: Merge from 3.4.
2 parents 679a2fe + 58cfdd8 commit 12c5247

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/import.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ PyImport_ExecCodeModuleObject(PyObject *name, PyObject *co, PyObject *pathname,
904904
&PyId__fix_up_module,
905905
d, name, pathname, cpathname, NULL);
906906
if (res != NULL) {
907+
Py_DECREF(res);
907908
res = exec_code_in_module(name, d, co);
908909
}
909910
return res;

0 commit comments

Comments
 (0)