[sr-dev] git:master:bd73d7af: Merge pull request #59 from kamailio/AndreyRybkin-dmq
Andrey Rybkin
rybkin.a at bks.tv
Mon Feb 2 07:31:34 CET 2015
Module: kamailio
Branch: master
Commit: bd73d7afabdab97c09464c3917506bbbaf89755c
URL: https://github.com/kamailio/kamailio/commit/bd73d7afabdab97c09464c3917506bbbaf89755c
Author: Andrey Rybkin <rybkin.a at bks.tv>
Committer: Andrey Rybkin <rybkin.a at 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/bd73d7afabdab97c09464c3917506bbbaf89755c.diff
Patch: https://github.com/kamailio/kamailio/commit/bd73d7afabdab97c09464c3917506bbbaf89755c.patch
---
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);
More information about the sr-dev
mailing list