diff options
author | Alexey Izbyshev <izbyshev@ispras.ru> | 2019-02-15 22:28:58 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-15 22:28:58 (GMT) |
commit | 36433221f06d649dbd7e13f5fec948be8ffb90af (patch) | |
tree | 1fc5d8e5db9b8158680917ada90f31fa77753409 /Modules/_xxsubinterpretersmodule.c | |
parent | 4327705cfab3eb09073ec828570bbd8f789e1611 (diff) | |
download | cpython-36433221f06d649dbd7e13f5fec948be8ffb90af.zip cpython-36433221f06d649dbd7e13f5fec948be8ffb90af.tar.gz cpython-36433221f06d649dbd7e13f5fec948be8ffb90af.tar.bz2 |
bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845)
https://bugs.python.org/issue35984
Diffstat (limited to 'Modules/_xxsubinterpretersmodule.c')
-rw-r--r-- | Modules/_xxsubinterpretersmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index 235df70..79c9def 100644 --- a/Modules/_xxsubinterpretersmodule.c +++ b/Modules/_xxsubinterpretersmodule.c @@ -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; } |