Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa282c commit 490b638Copy full SHA for 490b638
1 file changed
Modules/_winapi.c
@@ -132,6 +132,7 @@ overlapped_dealloc(OverlappedObject *self)
132
DWORD bytes;
133
int err = GetLastError();
134
135
+ PyObject_GC_UnTrack(self);
136
if (self->pending) {
137
if (check_CancelIoEx() &&
138
Py_CancelIoEx(self->handle, &self->overlapped) &&
@@ -164,7 +165,6 @@ overlapped_dealloc(OverlappedObject *self)
164
165
166
CloseHandle(self->overlapped.hEvent);
167
SetLastError(err);
- PyObject_GC_UnTrack(self);
168
if (self->write_buffer.obj)
169
PyBuffer_Release(&self->write_buffer);
170
Py_CLEAR(self->read_buffer);
0 commit comments