diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 9bc8f8e0d68..ebd871cf158 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1040,7 +1040,7 @@ newDevPollObject(void) static void devpoll_dealloc(devpollObject *self) { - (void)devpoll_internal_close(); + (void)devpoll_internal_close(self); PyMem_DEL(self->fds); PyObject_Del(self); }