summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2007-01-06 00:28:16 +0000
committerJason Parker <jparker@digium.com>2007-01-06 00:28:16 +0000
commit5abda34cd997d0cff3c8f72e1c8a61daa3c124aa (patch)
treeecfc8c3149057447003a8f3320f7c9e4ddba703d /pbx
parent37182c873e93244ae1181130be60e0de2b209ed4 (diff)
Merged revisions 49742 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49742 | qwell | 2007-01-05 18:24:38 -0600 (Fri, 05 Jan 2007) | 7 lines Save 1 whopping byte of allocated memory! This looks like it may have been a chicken/egg scenario.. You had to call a cleanup func, because everything was allocated. Then since you had to call a cleanup func, you were forced to allocate - ie; strdup(""). ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index d999f3cd4..7cd0fd5ee 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -1576,7 +1576,7 @@ static void pbx_load_users(void)
}
if (!ast_strlen_zero(iface)) {
/* Add hint */
- ast_add_extension2(con, 0, cat, -1, NULL, NULL, iface, strdup(""), ast_free, registrar);
+ ast_add_extension2(con, 0, cat, -1, NULL, NULL, iface, NULL, NULL, registrar);
/* If voicemail, use "stdexten" else use plain old dial */
if (hasvoicemail) {
snprintf(tmp, sizeof(tmp), "stdexten|%s|${HINT}", cat);