gh-122229: Add missing `Py_DECREF` in `func_get_annotation_dict` (#122230)

This commit is contained in:
sobolevn 2024-07-24 15:47:52 +03:00 committed by GitHub
parent af4329e7b1
commit e9681211b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -547,6 +547,7 @@ func_get_annotation_dict(PyFunctionObject *op)
PyTuple_GET_ITEM(ann_tuple, i + 1));
if (err < 0) {
Py_DECREF(ann_dict);
return NULL;
}
}