Module: kamailio Branch: 5.0 Commit: 49bafac8c6f50a17e44ff3ef350b95d1a51efa8c URL: https://github.com/kamailio/kamailio/commit/49bafac8c6f50a17e44ff3ef350b95d1...
Author: Federico Cabiddu federico.cabiddu@gmail.com Committer: Federico Cabiddu federico.cabiddu@gmail.com Date: 2017-03-05T10:12:34+01:00
http_async_client: fix memory leak in pkg memory in case of error
(cherry picked from commit bd35608f1799f27c725815637c2c8e99b32d53a2)
---
Modified: src/modules/http_async_client/http_multi.c
---
Diff: https://github.com/kamailio/kamailio/commit/49bafac8c6f50a17e44ff3ef350b95d1... Patch: https://github.com/kamailio/kamailio/commit/49bafac8c6f50a17e44ff3ef350b95d1...
---
diff --git a/src/modules/http_async_client/http_multi.c b/src/modules/http_async_client/http_multi.c index 849b4e6..5d07a9d 100644 --- a/src/modules/http_async_client/http_multi.c +++ b/src/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; }