Skip to content

Commit fc1e9e6

Browse files
[3.12] gh-126171: fix possible null dereference in _imp_find_frozen_impl (GH-126566) (#126568)
gh-126171: fix possible null dereference in _imp_find_frozen_impl (GH-126566) (cherry picked from commit 9ecd8f7) Co-authored-by: Valery Fedorenko <[email protected]>
1 parent a0866f4 commit fc1e9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3539,7 +3539,7 @@ _imp_find_frozen_impl(PyObject *module, PyObject *name, int withdata)
35393539
if (info.origname != NULL && info.origname[0] != '\0') {
35403540
origname = PyUnicode_FromString(info.origname);
35413541
if (origname == NULL) {
3542-
Py_DECREF(data);
3542+
Py_XDECREF(data);
35433543
return NULL;
35443544
}
35453545
}

0 commit comments

Comments
 (0)