From 1189f4874ab3e7ec2c2d1389d1e6ca466c2b8785 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 21 Nov 2024 21:06:08 +0100 Subject: [PATCH] siputils: add fixup_free* to exported functions --- src/modules/siputils/siputils.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/modules/siputils/siputils.c b/src/modules/siputils/siputils.c index cdae4ff1f18..7fa03902929 100644 --- a/src/modules/siputils/siputils.c +++ b/src/modules/siputils/siputils.c @@ -128,20 +128,20 @@ char *contact_flds_separator = DEFAULT_SEPARATOR; /* clang-format off */ static cmd_export_t cmds[] = { {"options_reply", (cmd_function)opt_reply, 0, 0, 0, REQUEST_ROUTE}, - {"is_user", (cmd_function)is_user, 1, fixup_spve_null, 0, + {"is_user", (cmd_function)is_user, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | LOCAL_ROUTE}, {"has_totag", (cmd_function)w_has_totag, 0, 0, 0, ANY_ROUTE}, - {"uri_param", (cmd_function)uri_param_1, 1, fixup_spve_null, 0, + {"uri_param", (cmd_function)uri_param_1, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"uri_param", (cmd_function)uri_param_2, 2, fixup_spve_spve, 0, + {"uri_param", (cmd_function)uri_param_2, 2, fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"uri_param_any", (cmd_function)w_uri_param_any, 1, fixup_spve_null, 0, + {"uri_param_any", (cmd_function)w_uri_param_any, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"add_uri_param", (cmd_function)add_uri_param, 1, fixup_str_null, 0, + {"add_uri_param", (cmd_function)add_uri_param, 1, fixup_str_null, fixup_free_str_null, REQUEST_ROUTE}, {"get_uri_param", (cmd_function)get_uri_param, 2, fixup_get_uri_param, free_fixup_get_uri_param, REQUEST_ROUTE | LOCAL_ROUTE}, - {"uri_param_rm", (cmd_function)w_uri_param_rm, 1, fixup_spve_null, 0, + {"uri_param_rm", (cmd_function)w_uri_param_rm, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, {"tel2sip", (cmd_function)tel2sip, 3, fixup_tel2sip, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | ONREPLY_ROUTE}, @@ -160,15 +160,15 @@ static cmd_export_t cmds[] = { REQUEST_ROUTE}, {"decode_contact_header", (cmd_function)decode_contact_header, 0, 0, 0, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {"cmp_uri", (cmd_function)w_cmp_uri, 2, fixup_spve_spve, 0, ANY_ROUTE}, - {"cmp_aor", (cmd_function)w_cmp_aor, 2, fixup_spve_spve, 0, ANY_ROUTE}, - {"cmp_hdr_name", (cmd_function)w_cmp_hdr_name, 2, fixup_spve_spve, 0, + {"cmp_uri", (cmd_function)w_cmp_uri, 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, + {"cmp_aor", (cmd_function)w_cmp_aor, 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, + {"cmp_hdr_name", (cmd_function)w_cmp_hdr_name, 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"is_rpid_user_e164", (cmd_function)is_rpid_user_e164, 0, 0, 0, REQUEST_ROUTE}, {"append_rpid_hf", (cmd_function)append_rpid_hf, 0, 0, 0, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"append_rpid_hf", (cmd_function)append_rpid_hf_p, 2, fixup_str_str, 0, + {"append_rpid_hf", (cmd_function)append_rpid_hf_p, 2, fixup_str_str, fixup_free_str_str, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, {"set_uri_user", (cmd_function)set_uri_user, 2, fixup_set_uri, fixup_free_set_uri, ANY_ROUTE}, @@ -179,20 +179,20 @@ static cmd_export_t cmds[] = { {"is_sip", (cmd_function)w_is_sip, 0, 0, 0, ANY_ROUTE}, {"is_http", (cmd_function)w_is_http, 0, 0, 0, ANY_ROUTE}, {"is_gruu", (cmd_function)w_is_gruu, 0, 0, 0, ANY_ROUTE}, - {"is_gruu", (cmd_function)w_is_gruu, 1, fixup_spve_null, 0, ANY_ROUTE}, + {"is_gruu", (cmd_function)w_is_gruu, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"is_supported", (cmd_function)w_is_supported, 1, fixup_option, 0, ANY_ROUTE}, {"is_first_hop", (cmd_function)w_is_first_hop, 0, 0, 0, ANY_ROUTE}, {"is_first_hop", (cmd_function)w_is_first_hop, 1, fixup_igp_null, fixup_free_igp_null, ANY_ROUTE}, - {"is_tel_number", (cmd_function)is_tel_number, 1, fixup_spve_null, 0, + {"is_tel_number", (cmd_function)is_tel_number, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, - {"is_numeric", (cmd_function)is_numeric, 1, fixup_spve_null, 0, + {"is_numeric", (cmd_function)is_numeric, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, - {"is_alphanum", (cmd_function)ksr_is_alphanum, 1, fixup_spve_null, 0, + {"is_alphanum", (cmd_function)ksr_is_alphanum, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"is_alphanumex", (cmd_function)ksr_is_alphanumex, 2, fixup_spve_spve, - 0, ANY_ROUTE}, + fixup_free_spve_spve, ANY_ROUTE}, {"sip_p_charging_vector", (cmd_function)sip_handle_pcv, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"contact_param_encode", (cmd_function)w_contact_param_encode, 2,