Skip to content

Commit 23468ac

Browse files
[3.13] gh-126171: fix possible null dereference in _imp_find_frozen_impl (GH-126566) (#126567)
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 9ecaee6 commit 23468ac

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
@@ -4436,7 +4436,7 @@ _imp_find_frozen_impl(PyObject *module, PyObject *name, int withdata)
44364436
if (info.origname != NULL && info.origname[0] != '\0') {
44374437
origname = PyUnicode_FromString(info.origname);
44384438
if (origname == NULL) {
4439-
Py_DECREF(data);
4439+
Py_XDECREF(data);
44404440
return NULL;
44414441
}
44424442
}

0 commit comments

Comments
 (0)