mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
[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 9ecd8f7f40
)
Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
This commit is contained in:
parent
9ecaee6a55
commit
23468acac4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue