Module: kamailio Branch: master Commit: e7eb7a24d0ceaf77803ff2d9c798a9b3247b89ff URL: https://github.com/kamailio/kamailio/commit/e7eb7a24d0ceaf77803ff2d9c798a9b3247b89ff
Author: Emmanuel Schmidbauer <[email protected]> Committer: Emmanuel Schmidbauer <[email protected]> Date: 2016-05-11T10:34:25-04:00 nsq: fix segfault on module destroy --- Modified: modules/nsq/nsq_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/e7eb7a24d0ceaf77803ff2d9c798a9b3247b89ff.diff Patch: https://github.com/kamailio/kamailio/commit/e7eb7a24d0ceaf77803ff2d9c798a9b3247b89ff.patch --- diff --git a/modules/nsq/nsq_mod.c b/modules/nsq/nsq_mod.c index 54d50b5..fde9094 100644 --- a/modules/nsq/nsq_mod.c +++ b/modules/nsq/nsq_mod.c @@ -68,14 +68,14 @@ static param_export_t params[]= static void free_tc_list(nsq_topic_channel_t *tcl) { - nsq_topic_channel_t *tc, *prev_tc; + nsq_topic_channel_t *tc, *tc0; tc = tcl; while (tc) { - prev_tc = tc; - tc = tc->next; + tc0 = tc->next; free(tc->topic); free(tc->channel); - pkg_free(prev_tc); + pkg_free(tc); + tc = tc0; } tcl = NULL; } _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
