Skip to content

Commit 9ecd8f7

Browse files
gh-126171: fix possible null dereference in _imp_find_frozen_impl (#126566)
1 parent 06a8b0b commit 9ecd8f7

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
@@ -4424,7 +4424,7 @@ _imp_find_frozen_impl(PyObject *module, PyObject *name, int withdata)
44244424
if (info.origname != NULL && info.origname[0] != '\0') {
44254425
origname = PyUnicode_FromString(info.origname);
44264426
if (origname == NULL) {
4427-
Py_DECREF(data);
4427+
Py_XDECREF(data);
44284428
return NULL;
44294429
}
44304430
}

0 commit comments

Comments
 (0)