From: Chris Rienzo Date: Mon, 16 Sep 2013 03:22:12 +0000 (-0400) Subject: mod_rayo: fix reloadxml issue X-Git-Tag: v1.5.6~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d2761ac02d69bbc0afab8473e2e4342c3f7d7d;p=thirdparty%2Ffreeswitch.git mod_rayo: fix reloadxml issue --- diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index c556083f22..e232ac8d38 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -3309,7 +3309,7 @@ static switch_status_t do_config(switch_memory_pool_t *pool, const char *config_ const char *alias_name = switch_xml_attr_soft(alias, "name"); const char *alias_target = switch_xml_attr_soft(alias, "target"); if (!zstr(alias_name) && !zstr(alias->txt)) { - rayo_add_cmd_alias(alias_name, alias_target, alias->txt); + rayo_add_cmd_alias(alias_name, switch_core_strdup(pool, alias_target), switch_core_strdup(pool, alias->txt)); } } }