bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH… · python/cpython@3643322

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 3643322

Alexey Izbyshevmiss-islington

Alexey Izbyshev

authored and

committed

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

Lines changed: 1 addition & 0 deletions

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)