[sr-dev] git:master:305dbe71: json: Add fixup_free function for json_get_field

Alex Hermann alex at hexla.nl
Sat Sep 23 07:58:47 CEST 2017


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

Author: Alex Hermann <alex at hexla.nl>
Committer: Alex Hermann <alex at hexla.nl>
Date: 2017-09-22T11:56:54+02:00

json: Add fixup_free function for json_get_field

---

Modified: src/modules/json/json_mod.c

---

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

---

diff --git a/src/modules/json/json_mod.c b/src/modules/json/json_mod.c
index b20299efe9..ec7a5fced3 100644
--- a/src/modules/json/json_mod.c
+++ b/src/modules/json/json_mod.c
@@ -82,7 +82,7 @@ static int fixup_get_field(void** param, int param_no)
 static int fixup_get_field_free(void** param, int param_no)
 {
 	if (param_no == 1 || param_no == 2) {
-		LM_WARN("free function has not been defined for spve\n");
+		fixup_free_spve_null(param, 1);
 		return 0;
 	}
 




More information about the sr-dev mailing list