From 9812a49fb7fa58b9d9f2b29ac963011d4d684bcb Mon Sep 17 00:00:00 2001 From: Federico Cabiddu Date: Sun, 5 Mar 2017 10:14:56 +0100 Subject: [PATCH] http_async_client: fix memory leak in pkg memory in case of error (cherry picked from commit bd35608f1799f27c725815637c2c8e99b32d53a2) --- modules/http_async_client/http_multi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/http_async_client/http_multi.c b/modules/http_async_client/http_multi.c index a5df0abacbc..4f0f1a23549 100644 --- a/modules/http_async_client/http_multi.c +++ b/modules/http_async_client/http_multi.c @@ -316,6 +316,8 @@ void reply_error(struct http_m_cell *cell) cell->cb(reply, cell->param); + pkg_free(reply); + return; }