Skip to content

Commit d8933dd

Browse files
Update Python/suggestions.c
Co-authored-by: Batuhan Taskaya <[email protected]>
1 parent 8a244b9 commit d8933dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/suggestions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ get_suggestions_for_name_error(PyObject* name, PyFrameObject* frame)
243243
}
244244

245245
if (PyObject_HasAttr(self, name)) {
246+
Py_DECREF(dir);
246247
return PyUnicode_FromFormat("self.%S", name);
247248
}
248249
}

0 commit comments

Comments
 (0)