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 <[email protected]>
  • Loading branch information
federicovalenso authored and miss-islington committed Nov 8, 2024
1 parent 9ecaee6 commit eb65a3e
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 eb65a3e

Please sign in to comment.