Module: sip-router Branch: kamailio_3.0 Commit: bca7a6509981defde01b6df6e63e3b483062a840 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bca7a650...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Oct 30 12:53:14 2009 +0100
core: destroy xavp list once sip msg processing is done
- import from branch daniel/xavp
---
receive.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/receive.c b/receive.c index 6ff60ee..c0312be 100644 --- a/receive.c +++ b/receive.c @@ -59,6 +59,9 @@ #include "nonsip_hooks.h" #include "dset.h" #include "usr_avp.h" +#ifdef WITH_XAVP +#include "xavp.h" +#endif #include "select_buf.h"
#include "tcp_server.h" /* for tcpconn_add_alias */ @@ -271,6 +274,9 @@ end: #endif /* free possible loaded avps -bogdan */ reset_avps(); +#ifdef WITH_XAVP + xavp_reset_list(); +#endif DBG("receive_msg: cleaning up\n"); free_sip_msg(msg); pkg_free(msg); @@ -283,6 +289,9 @@ error_rpl: /* execute post reply-script callbacks */ exec_post_script_cb(msg, ONREPLY_CB_TYPE); reset_avps(); +#ifdef WITH_XAVP + xavp_reset_list(); +#endif goto error02; #endif error_req: @@ -292,6 +301,9 @@ error_req: error03: /* free possible loaded avps -bogdan */ reset_avps(); +#ifdef WITH_XAVP + xavp_reset_list(); +#endif error02: free_sip_msg(msg); pkg_free(msg);