Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Mar 13, 2022
1 parent 720fd84 commit 50b1380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/overlapped.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ Overlapped_clear(OverlappedObject *self)
// We've received a message, free the result tuple.
Py_CLEAR(self->read_from_into.result);
}
if (self->read_from_into->user_buffer.obj) {
PyBuffer_Release(&self->read_from_into->user_buffer);
if (self->read_from_into.user_buffer.obj) {
PyBuffer_Release(&self->read_from_into.user_buffer);
}
break;
}
Expand Down

0 comments on commit 50b1380

Please sign in to comment.