[sr-dev] git:master:194d1bd1: cfgutils: Add fixup_free functions to (u)sleep functions

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


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

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

cfgutils: Add fixup_free functions to (u)sleep functions

---

Modified: src/modules/cfgutils/cfgutils.c

---

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

---

diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index ca7bf77ae3..d028a30918 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -134,9 +134,9 @@ static cmd_export_t cmds[]={
 		ANY_ROUTE},
 	{"rand_event",      (cmd_function)rand_event, 0, 0, 0,
 		ANY_ROUTE},
-	{"sleep",  (cmd_function)m_sleep,  1, fixup_igp_null, 0,
+	{"sleep",  (cmd_function)m_sleep,  1, fixup_igp_null, fixup_free_igp_null,
 		ANY_ROUTE},
-	{"usleep", (cmd_function)m_usleep, 1, fixup_igp_null, 0,
+	{"usleep", (cmd_function)m_usleep, 1, fixup_igp_null, fixup_free_igp_null,
 		ANY_ROUTE},
 	{"abort",      (cmd_function)dbg_abort,        0, 0, 0,
 		ANY_ROUTE},




More information about the sr-dev mailing list