Module: kamailio
Branch: master
Commit: 4ba15a7db033b699008885473a3f8c72811975ce
URL:
https://github.com/kamailio/kamailio/commit/4ba15a7db033b699008885473a3f8c7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-12-12T16:51:26+01:00
misc_radius: add fixup_free* to exported functions
---
Modified: src/modules/misc_radius/misc_radius.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4ba15a7db033b699008885473a3f8c7…
Patch:
https://github.com/kamailio/kamailio/commit/4ba15a7db033b699008885473a3f8c7…
---
diff --git a/src/modules/misc_radius/misc_radius.c
b/src/modules/misc_radius/misc_radius.c
index 9de465a2122..b0928bd62d8 100644
--- a/src/modules/misc_radius/misc_radius.c
+++ b/src/modules/misc_radius/misc_radius.c
@@ -79,26 +79,23 @@ struct val uri_vals[UV_STATIC_MAX];
/* clang-format off */
static cmd_export_t cmds[] = {
{"radius_load_caller_avps", (cmd_function)radius_load_caller_avps, 1,
- fixup_spve_null, 0, REQUEST_ROUTE | FAILURE_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE},
{"radius_load_callee_avps", (cmd_function)radius_load_callee_avps, 1,
- fixup_spve_null, 0, REQUEST_ROUTE | FAILURE_ROUTE},
+ fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE},
{"radius_is_user_in", (cmd_function)radius_is_user_in, 2,
- fixup_spve_spve, 0,
+ fixup_spve_spve, fixup_free_spve_spve,
REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
- {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_0,
- 0, 0, 0, REQUEST_ROUTE|LOCAL_ROUTE},
- {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_1,
- 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE},
- {"radius_does_uri_user_exist",
- (cmd_function)radius_does_uri_user_exist_0,
- 0, 0, 0, REQUEST_ROUTE|LOCAL_ROUTE},
- {"radius_does_uri_user_exist",
- (cmd_function)radius_does_uri_user_exist_1,
- 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE},
+ {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_0, 0,
+ 0, 0, REQUEST_ROUTE|LOCAL_ROUTE},
+ {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_1, 1,
+ fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE},
+ {"radius_does_uri_user_exist", (cmd_function)radius_does_uri_user_exist_0, 0,
+ 0, 0, REQUEST_ROUTE|LOCAL_ROUTE},
+ {"radius_does_uri_user_exist", (cmd_function)radius_does_uri_user_exist_1, 1,
+ fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE},
{0, 0, 0, 0, 0, 0}
};
-
/*
* Exported parameters
*/
@@ -117,7 +114,6 @@ static param_export_t params[] = {
{0, 0, 0}
};
-
struct module_exports exports = {
"misc_radius", /* module name */
DEFAULT_DLFLAGS, /* dlopen flags */