summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-08-16 12:52:06 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-08-16 12:52:06 +0000
commitf4586f3018f78a223784072d547cd0072306d9de (patch)
tree1ce95abeed9f88b844bd0f714fae09ab9cc0287e /main/pbx.c
parenta4db6599259c9ec5977775ea157c4cc592b4d7a4 (diff)
Also make sure hinting won't crash on reload.
(Closes issue #13312) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 3bf360ad7..2649ddecc 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5921,7 +5921,7 @@ void ast_merge_contexts_and_delete(struct ast_context **extcontexts, struct ast_
*/
if (exten && exten->exten[0] == '_') {
ast_add_extension(exten->parent->name, 0, this->exten, PRIORITY_HINT, NULL,
- 0, exten->app, strdup(exten->data), free, registrar);
+ 0, exten->app, ast_strdup(exten->data), ast_free_ptr, registrar);
exten = ast_hint_extension(NULL, this->context, this->exten);
}