Module: sip-router
Branch: master
Commit: a7d9ea3ceda6b933807f0345e327849e60d0fa57
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a7d9ea3ceda6b933807f0345e327849e60d0fa57

Author: Jason Penton <[email protected]>
Committer: Jason Penton <[email protected]>
Date:   Tue Oct 29 09:42:45 2013 +0200

modules/tm: last pkg_mem leak resolved for async replies (nonshm lumps)

---

 modules/tm/t_suspend.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index d898984..23fdb03 100644
--- a/modules/tm/t_suspend.c
+++ b/modules/tm/t_suspend.c
@@ -47,6 +47,9 @@
 
 #include "t_suspend.h"
 
+#include "../../data_lump.h"
+#include "../../data_lump_rpl.h"
+
 /* Suspends the transaction for later use.
  * Save the returned hash_index and label to get
  * back to the SIP request processing, see the readme.
@@ -382,6 +385,11 @@ done:
                t_unref(t->uac[branch].reply);
                LOG(L_DBG,"DEBUG: t_continue_reply: Freeing earlier cloned 
reply\n");
                /* free header's parsed structures that were added by failure 
handlers */
+
+               del_nonshm_lump( &(t->uac[branch].reply->add_rm) );
+               del_nonshm_lump( &(t->uac[branch].reply->body_lumps) );
+               del_nonshm_lump_rpl( &(t->uac[branch].reply->reply_lump) );
+
                struct hdr_field* hdr;
                struct hdr_field* prev = 0;
                struct hdr_field* tmp = 0;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to