Skip to content

Commit

Permalink
pythongh-126171: fix possible null dereference in _imp_find_frozen_im…
Browse files Browse the repository at this point in the history
…pl (pythonGH-126566)

(cherry picked from commit 9ecd8f7)

Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
  • Loading branch information
federicovalenso authored and miss-islington committed Nov 8, 2024
1 parent a0866f4 commit 54e2a5e
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 @@ -3539,7 +3539,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 54e2a5e

Please sign in to comment.