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
  • Loading branch information
federicovalenso authored Nov 8, 2024
1 parent 06a8b0b commit 9ecd8f7
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 @@ -4424,7 +4424,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 9ecd8f7

Please sign in to comment.