Browse code

core: destroy xavp list once sip msg processing is done

Daniel-Constantin Mierla authored on 30/06/2009 10:15:30
Showing 1 changed files
... ...
@@ -59,6 +59,9 @@
59 59
 #include "nonsip_hooks.h"
60 60
 #include "dset.h"
61 61
 #include "usr_avp.h"
62
+#ifdef WITH_XAVP
63
+#include "xavp.h"
64
+#endif
62 65
 #include "select_buf.h"
63 66
 
64 67
 #include "tcp_server.h" /* for tcpconn_add_alias */
... ...
@@ -241,6 +244,9 @@ end:
241 244
 #endif
242 245
 	/* free possible loaded avps -bogdan */
243 246
 	reset_avps();
247
+#ifdef WITH_XAVP
248
+	xavp_reset_list();
249
+#endif
244 250
 	DBG("receive_msg: cleaning up\n");
245 251
 	free_sip_msg(msg);
246 252
 	pkg_free(msg);
... ...
@@ -252,6 +258,9 @@ error_rpl:
252 258
 	/* execute post reply-script callbacks */
253 259
 	exec_post_script_cb(msg, ONREPLY_CB_TYPE);
254 260
 	reset_avps();
261
+#ifdef WITH_XAVP
262
+	xavp_reset_list();
263
+#endif
255 264
 	goto error02;
256 265
 error_req:
257 266
 	DBG("receive_msg: error:...\n");
... ...
@@ -259,6 +268,9 @@ error_req:
259 268
 	exec_post_script_cb(msg, REQUEST_CB_TYPE);
260 269
 	/* free possible loaded avps -bogdan */
261 270
 	reset_avps();
271
+#ifdef WITH_XAVP
272
+	xavp_reset_list();
273
+#endif
262 274
 error02:
263 275
 	free_sip_msg(msg);
264 276
 	pkg_free(msg);