From 36433221f06d649dbd7e13f5fec948be8ffb90af Mon Sep 17 00:00:00 2001 From: Alexey Izbyshev Date: Sat, 16 Feb 2019 01:28:58 +0300 Subject: [PATCH] bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845) https://bugs.python.org/issue35984 --- Modules/_xxsubinterpretersmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index 235df7076f9..79c9def7262 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; }