Module: kamailio
Branch: master
Commit: 064a88492c5d908569ba9d01f2116e7795a74583
URL: 
https://github.com/kamailio/kamailio/commit/064a88492c5d908569ba9d01f2116e7795a74583

Author: Federico Cabiddu <federico.cabi...@gmail.com>
Committer: Federico Cabiddu <federico.cabi...@gmail.com>
Date: 2024-12-04T08:58:14+01:00

log_systemd: add fixup_free* to exported functions

---

Modified: src/modules/log_systemd/log_systemd_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/064a88492c5d908569ba9d01f2116e7795a74583.diff
Patch: 
https://github.com/kamailio/kamailio/commit/064a88492c5d908569ba9d01f2116e7795a74583.patch

---

diff --git a/src/modules/log_systemd/log_systemd_mod.c 
b/src/modules/log_systemd/log_systemd_mod.c
index 0f6d5f460a6..1aabd135f9b 100644
--- a/src/modules/log_systemd/log_systemd_mod.c
+++ b/src/modules/log_systemd/log_systemd_mod.c
@@ -47,27 +47,30 @@ static int w_sd_journal_print(struct sip_msg *msg, char 
*lev, char *txt);
 static int w_sd_journal_send_xavp(struct sip_msg *msg, char *xname, char *);
 
 
+/* clang-format off */
 static cmd_export_t cmds[] = {
-               {"sd_journal_print", (cmd_function)w_sd_journal_print, 2,
-                               fixup_spve_spve, 0, ANY_ROUTE},
-               {"sd_journal_send_xavp", (cmd_function)w_sd_journal_send_xavp, 
1,
-                               fixup_spve_spve, 0, ANY_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
+       {"sd_journal_print", (cmd_function)w_sd_journal_print, 2,
+                       fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
+       {"sd_journal_send_xavp", (cmd_function)w_sd_journal_send_xavp, 1,
+                       fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 static param_export_t params[] = {{0, 0, 0}};
 
 struct module_exports exports = {
-               "log_systemd",   /* module name */
-               DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds,                    /* cmd (cfg function) exports */
-               params,                  /* param exports */
-               0,                               /* RPC method exports */
-               0,                               /* pseudo-variables exports */
-               0,                               /* response handling function 
*/
-               mod_init,                /* module init function */
-               child_init,              /* per-child init function */
-               mod_destroy              /* module destroy function */
+       "log_systemd",   /* module name */
+       DEFAULT_DLFLAGS, /* dlopen flags */
+       cmds,                    /* cmd (cfg function) exports */
+       params,                  /* param exports */
+       0,                               /* RPC method exports */
+       0,                               /* pseudo-variables exports */
+       0,                               /* response handling function */
+       mod_init,                /* module init function */
+       child_init,              /* per-child init function */
+       mod_destroy              /* module destroy function */
 };
+/* clang-format on */
 
 /**
  * init module function
@@ -213,4 +216,4 @@ int mod_register(char *path, int *dlflags, void *p1, void 
*p2)
        _lc_log_systemd = 1;
        sr_kemi_modules_add(sr_kemi_log_systemd_exports);
        return 0;
-}
\ No newline at end of file
+}

_______________________________________________
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