@rfuchs commented on this pull request.


> +
+       fmsg = faked_msg_next();
+       rtb = get_route_type();
+       set_route_type(REQUEST_ROUTE);
+       init_run_actions_ctx(&ctx);
+       run_top_route(event_rt.rlist[dtmf_event_rt], fmsg, &ctx);
+       set_route_type(rtb);
+       if(ctx.run_flags & DROP_R_F) {
+               LM_ERR("exit due to 'drop' in event route\n");
+               goto error;
+       }
+
+       return 0;
+
+error:
+       srjson_DestroyDoc(&jdoc);

This also needs to be done on success, no?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3473#pullrequestreview-1477039343
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3473/review/1477039...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to