bpo-32226: Fix memory leak in generic_alias_dealloc() (#5212)

This commit is contained in:
Victor Stinner 2018-01-17 23:08:18 +01:00 committed by GitHub
parent 7d91c02504
commit e860089fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -5064,6 +5064,7 @@ static void
generic_alias_dealloc(PyGenericAliasObject *self)
{
Py_CLEAR(self->item);
Py_TYPE(self)->tp_free((PyObject *)self);
}
static PyObject *