Module: kamailio
Branch: master
Commit: bd73d7afabdab97c09464c3917506bbbaf89755c
URL:
https://github.com/kamailio/kamailio/commit/bd73d7afabdab97c09464c3917506bb…
Author: Andrey Rybkin <rybkin.a(a)bks.tv>
Committer: Andrey Rybkin <rybkin.a(a)bks.tv>
Date: 2015-02-02T09:31:26+03:00
Merge pull request #59 from kamailio/AndreyRybkin-dmq
dmq: fix memory leak
---
Modified: modules/dmq/worker.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bd73d7afabdab97c09464c3917506bb…
Patch:
https://github.com/kamailio/kamailio/commit/bd73d7afabdab97c09464c3917506bb…
---
diff --git a/modules/dmq/worker.c b/modules/dmq/worker.c
index 8426730..0d25968 100644
--- a/modules/dmq/worker.c
+++ b/modules/dmq/worker.c
@@ -123,6 +123,10 @@ void worker_loop(int id)
del_nonshm_lump_rpl(¤t_job->msg->reply_lump);
pkg_free(peer_response.body.s);
}
+ if(current_job->msg->from->parsed){
+ free_to(current_job->msg->from->parsed);
+ }
+
LM_DBG("sent reply\n");
shm_free(current_job->msg);
shm_free(current_job);