[sr-dev] git:4.4:9812a49f: http_async_client: fix memory leak in pkg memory in case of error

Federico Cabiddu federico.cabiddu at gmail.com
Sun Mar 5 10:15:36 CET 2017


Module: kamailio
Branch: 4.4
Commit: 9812a49fb7fa58b9d9f2b29ac963011d4d684bcb
URL: https://github.com/kamailio/kamailio/commit/9812a49fb7fa58b9d9f2b29ac963011d4d684bcb

Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at 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/9812a49fb7fa58b9d9f2b29ac963011d4d684bcb.diff
Patch: https://github.com/kamailio/kamailio/commit/9812a49fb7fa58b9d9f2b29ac963011d4d684bcb.patch

---

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;
 }
 




More information about the sr-dev mailing list