summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-11-08 10:55:38 (GMT)
committerGitHub <noreply@github.com>2024-11-08 10:55:38 (GMT)
commit23468acac4f682f079abc09e93492990d61e56c2 (patch)
tree442a66748d72523457e93209872a3ed85f503ef5 /Python
parent9ecaee6a551a4756687d018829625ec31f49df72 (diff)
downloadcpython-23468acac4f682f079abc09e93492990d61e56c2.zip
cpython-23468acac4f682f079abc09e93492990d61e56c2.tar.gz
cpython-23468acac4f682f079abc09e93492990d61e56c2.tar.bz2
[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 9ecd8f7f40e6724a1c1d46c2665147aaabceb2d2) Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 2ec5968..1541d5a 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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;
}
}