Skip to content

Commit 3640843

Browse files
committed
Fix another leak
1 parent d1554e0 commit 3640843

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/moduleobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ module_get_annotations(PyModuleObject *m, void *Py_UNUSED(ignored))
845845

846846
if ((dict == NULL) || !PyDict_Check(dict)) {
847847
PyErr_Format(PyExc_TypeError, "<module>.__dict__ is not a dictionary");
848+
Py_XDECREF(dict);
848849
return NULL;
849850
}
850851

0 commit comments

Comments
 (0)