Module: kamailio
Branch: master
Commit: 5bebde177c357e2aaf5f24537d0d44da51ac914a
URL:
https://github.com/kamailio/kamailio/commit/5bebde177c357e2aaf5f24537d0d44d…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-22T15:29:00+01:00
regex: add fixup_free* to exported functions
---
Modified: src/modules/regex/regex_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5bebde177c357e2aaf5f24537d0d44d…
Patch:
https://github.com/kamailio/kamailio/commit/5bebde177c357e2aaf5f24537d0d44d…
---
diff --git a/src/modules/regex/regex_mod.c b/src/modules/regex/regex_mod.c
index 11c055c1d10..4c378bb28f0 100644
--- a/src/modules/regex/regex_mod.c
+++ b/src/modules/regex/regex_mod.c
@@ -116,13 +116,13 @@ static int w_pcre_match_group(struct sip_msg *_msg, char *_s1, char
*_s2);
/* clang-format off */
static cmd_export_t cmds[] = {
{"pcre_match", (cmd_function)w_pcre_match, 2,
- fixup_spve_spve, 0,
+ fixup_spve_spve, fixup_free_spve_spve,
REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE},
{"pcre_match_group", (cmd_function)w_pcre_match_group, 2,
- fixup_spve_spve, 0,
+ fixup_spve_spve, fixup_free_spve_spve,
REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE},
{"pcre_match_group", (cmd_function)w_pcre_match_group, 1,
- fixup_spve_null, 0,
+ fixup_spve_null, fixup_free_spve_null,
REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE},
{0, 0, 0, 0, 0, 0}
};