Module: kamailio
Branch: master
Commit: fb7263a39a91e32dd39ef3548425ed3d43e7f9f9
URL:
https://github.com/kamailio/kamailio/commit/fb7263a39a91e32dd39ef3548425ed3…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-22T10:13:20+01:00
sdpops: add fixup_free* to exported functions
---
Modified: src/modules/sdpops/sdpops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fb7263a39a91e32dd39ef3548425ed3…
Patch:
https://github.com/kamailio/kamailio/commit/fb7263a39a91e32dd39ef3548425ed3…
---
diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c
index 34a11697361..e88dcf89ee7 100644
--- a/src/modules/sdpops/sdpops_mod.c
+++ b/src/modules/sdpops/sdpops_mod.c
@@ -95,42 +95,42 @@ static int mod_init(void);
/* clang-format off */
static cmd_export_t cmds[] = {
{"sdp_remove_line_by_prefix", (cmd_function)w_sdp_remove_line_by_prefix,
- 1, fixup_spve_null, 0, ANY_ROUTE},
+ 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_remove_line_by_prefix", (cmd_function)w_sdp_remove_line_by_prefix,
- 2, fixup_spve_spve, 0, ANY_ROUTE},
+ 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"sdp_remove_codecs_by_id", (cmd_function)w_sdp_remove_codecs_by_id, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_remove_codecs_by_id", (cmd_function)w_sdp_remove_codecs_by_id, 2,
- fixup_spve_spve, 0, ANY_ROUTE},
+ fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"sdp_remove_codecs_by_name", (cmd_function)w_sdp_remove_codecs_by_name,
- 1, fixup_spve_null, 0, ANY_ROUTE},
+ 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_remove_codecs_by_name", (cmd_function)w_sdp_remove_codecs_by_name,
- 2, fixup_spve_spve, 0, ANY_ROUTE},
+ 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"sdp_keep_codecs_by_id", (cmd_function)w_sdp_keep_codecs_by_id, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_keep_codecs_by_id", (cmd_function)w_sdp_keep_codecs_by_id, 2,
- fixup_spve_spve, 0, ANY_ROUTE},
+ fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"sdp_keep_codecs_by_name", (cmd_function)w_sdp_keep_codecs_by_name, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_keep_codecs_by_name", (cmd_function)w_sdp_keep_codecs_by_name, 2,
- fixup_spve_spve, 0, ANY_ROUTE},
+ fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"sdp_with_media", (cmd_function)w_sdp_with_media, 1, fixup_spve_null,
0, ANY_ROUTE},
{"sdp_with_active_media", (cmd_function)w_sdp_with_active_media, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_remove_media", (cmd_function)w_sdp_remove_media, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_with_transport", (cmd_function)w_sdp_with_transport, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_with_transport_like", (cmd_function)w_sdp_with_transport_like, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_remove_transport", (cmd_function)w_sdp_remove_transport, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_transport", (cmd_function)w_sdp_transport, 1, 0, 0, ANY_ROUTE},
{"sdp_with_codecs_by_id", (cmd_function)w_sdp_with_codecs_by_id, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_with_codecs_by_name", (cmd_function)w_sdp_with_codecs_by_name, 1,
- fixup_spve_null, 0, ANY_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"sdp_print", (cmd_function)w_sdp_print, 1, fixup_igp_null, 0,
ANY_ROUTE},
{"sdp_get", (cmd_function)w_sdp_get, 1, 0, 0, ANY_ROUTE},
@@ -138,7 +138,7 @@ static cmd_export_t cmds[] = {
{"sdp_content", (cmd_function)w_sdp_content_sloppy, 1, 0, 0, ANY_ROUTE},
{"sdp_with_ice", (cmd_function)w_sdp_with_ice, 0, 0, 0, ANY_ROUTE},
{"sdp_get_line_startswith", (cmd_function)w_sdp_get_line_startswith, 2,
- fixup_none_spve, 0, ANY_ROUTE},
+ fixup_none_spve, fixup_free_none_spve, ANY_ROUTE},
{"sdp_get_address_family", (cmd_function)w_sdp_get_address_family, 0, 0,
0, ANY_ROUTE},