Module: kamailio
Branch: master
Commit: 5bebde177c357e2aaf5f24537d0d44da51ac914a
URL: 
https://github.com/kamailio/kamailio/commit/5bebde177c357e2aaf5f24537d0d44da51ac914a

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@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/5bebde177c357e2aaf5f24537d0d44da51ac914a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5bebde177c357e2aaf5f24537d0d44da51ac914a.patch

---

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}
 };

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to