gh-126171: fix possible null dereference in _imp_find_frozen_impl (#126566)

This commit is contained in:
Valery Fedorenko 2024-11-08 13:19:15 +03:00 committed by GitHub
parent 06a8b0bb5e
commit 9ecd8f7f40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}