Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do not exit _channel_recv() without freeing the cross-interpreter data.
  • Loading branch information
ericsnowcurrently committed Apr 28, 2020
commit 2183afccb342cfaba531baaa1c32b79a004f3495
4 changes: 2 additions & 2 deletions Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,11 +1355,11 @@ _channel_recv(_channels *channels, int64_t id)

// Convert the data back to an object.
PyObject *obj = _PyCrossInterpreterData_NewObject(data);
_PyCrossInterpreterData_Release(data);
PyMem_Free(data);
if (obj == NULL) {
return NULL;
}
_PyCrossInterpreterData_Release(data);
PyMem_Free(data);

return obj;
}
Expand Down