[Python-checkins] bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845)
Miss Islington (bot)
webhook-mailer at python.org
Fri Feb 15 17:29:07 EST 2019
https://github.com/python/cpython/commit/36433221f06d649dbd7e13f5fec948be8ffb90af
commit: 36433221f06d649dbd7e13f5fec948be8ffb90af
branch: master
author: Alexey Izbyshev <izbyshev at ispras.ru>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-02-15T14:28:58-08:00
summary:
bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845)
https://bugs.python.org/issue35984
files:
M Modules/_xxsubinterpretersmodule.c
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index 235df7076f99..79c9def72629 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;
}
More information about the Python-checkins
mailing list