Module: kamailio Branch: master Commit: bd35608f1799f27c725815637c2c8e99b32d53a2 URL: https://github.com/kamailio/kamailio/commit/bd35608f1799f27c725815637c2c8e99...
Author: Federico Cabiddu federico.cabiddu@gmail.com Committer: Federico Cabiddu federico.cabiddu@gmail.com Date: 2017-03-05T10:11:22+01:00
http_async_client: fix memory leak in pkg memory in case of error
---
Modified: src/modules/http_async_client/http_multi.c
---
Diff: https://github.com/kamailio/kamailio/commit/bd35608f1799f27c725815637c2c8e99... Patch: https://github.com/kamailio/kamailio/commit/bd35608f1799f27c725815637c2c8e99...
---
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; }