mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845)
https://bugs.python.org/issue35984
This commit is contained in:
parent
4327705cfa
commit
36433221f0
@ -1339,6 +1339,7 @@ _channel_send(_channels *channels, int64_t id, PyObject *obj)
|
||||
return -1;
|
||||
}
|
||||
if (_PyObject_GetCrossInterpreterData(obj, data) != 0) {
|
||||
PyMem_Free(data);
|
||||
PyThread_release_lock(mutex);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user