[sr-dev] git:master:a58b4c2a: call_obj_mod: no need to use a free function for call_obj_get.

Vicente Hernando vhernando at systemonenoc.com
Thu Jun 27 12:40:27 CEST 2019


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

Author: Vicente Hernando <vhernando at systemonenoc.com>
Committer: Vicente Hernando <vhernando at systemonenoc.com>
Date: 2019-06-27T12:38:26+02:00

call_obj_mod: no need to use a free function for call_obj_get.

---

Modified: src/modules/call_obj/call_obj_mod.c

---

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

---

diff --git a/src/modules/call_obj/call_obj_mod.c b/src/modules/call_obj/call_obj_mod.c
index 250a4003b4..c8bc1786f0 100644
--- a/src/modules/call_obj/call_obj_mod.c
+++ b/src/modules/call_obj/call_obj_mod.c
@@ -28,7 +28,7 @@ int call_obj_end = 0;
 
 /* module commands */
 static cmd_export_t cmds[] = {
-	{"call_obj_get", (cmd_function)w_call_obj_get, 1, fixup_pvar_null, fixup_free_pvar_null, ANY_ROUTE},
+	{"call_obj_get", (cmd_function)w_call_obj_get, 1, fixup_pvar_null, 0, ANY_ROUTE},
 	{"call_obj_free", (cmd_function)w_call_obj_free, 1, fixup_var_str_1, 0, ANY_ROUTE},
 	{ 0, 0, 0, 0, 0, 0}
 };




More information about the sr-dev mailing list