Module: sip-router
Branch: daniel/xavp
Commit: 4075c49e921b0f4bcc48b7f1922f5c01d4ea492b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4075c49…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jun 30 12:15:30 2009 +0200
core: destroy xavp list once sip msg processing is done
---
receive.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/receive.c b/receive.c
index ac92867..b055183 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 */
@@ -241,6 +244,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);
@@ -252,6 +258,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;
error_req:
DBG("receive_msg: error:...\n");
@@ -259,6 +268,9 @@ error_req:
exec_post_script_cb(msg, REQUEST_CB_TYPE);
/* free possible loaded avps -bogdan */
reset_avps();
+#ifdef WITH_XAVP
+ xavp_reset_list();
+#endif
error02:
free_sip_msg(msg);
pkg_free(msg);