Skip to content

Commit

Permalink
[3.13] gh-126171: fix possible null dereference in _imp_find_frozen_i…
Browse files Browse the repository at this point in the history
…mpl (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]>
  • Loading branch information
miss-islington and federicovalenso authored Nov 8, 2024
1 parent 9ecaee6 commit 23468ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -4436,7 +4436,7 @@ _imp_find_frozen_impl(PyObject *module, PyObject *name, int withdata)
if (info.origname != NULL && info.origname[0] != '\0') {
origname = PyUnicode_FromString(info.origname);
if (origname == NULL) {
Py_DECREF(data);
Py_XDECREF(data);
return NULL;
}
}
Expand Down

0 comments on commit 23468ac

Please sign in to comment.