Skip to content

Commit 3643322

Browse files
Alexey Izbyshevmiss-islington
Alexey Izbyshev
authored andcommitted
bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845)
https://bugs.python.org/issue35984
1 parent 4327705 commit 3643322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_xxsubinterpretersmodule.c

+1
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ _channel_send(_channels *channels, int64_t id, PyObject *obj)
13391339
return -1;
13401340
}
13411341
if (_PyObject_GetCrossInterpreterData(obj, data) != 0) {
1342+
PyMem_Free(data);
13421343
PyThread_release_lock(mutex);
13431344
return -1;
13441345
}

0 commit comments

Comments
 (0)