Module: kamailio
Branch: 4.4
Commit: 9812a49fb7fa58b9d9f2b29ac963011d4d684bcb
URL:
https://github.com/kamailio/kamailio/commit/9812a49fb7fa58b9d9f2b29ac963011…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2017-03-05T10:15:17+01:00
http_async_client: fix memory leak in pkg memory in case of error
(cherry picked from commit bd35608f1799f27c725815637c2c8e99b32d53a2)
---
Modified: modules/http_async_client/http_multi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9812a49fb7fa58b9d9f2b29ac963011…
Patch:
https://github.com/kamailio/kamailio/commit/9812a49fb7fa58b9d9f2b29ac963011…
---
diff --git a/modules/http_async_client/http_multi.c
b/modules/http_async_client/http_multi.c
index a5df0ab..4f0f1a2 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;
}