aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-16 12:52:06 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-16 12:52:06 +0000
commitc2d44c866aa64a99c997389acdf6f9ea2b0d399f (patch)
tree1ce95abeed9f88b844bd0f714fae09ab9cc0287e /main
parent962eea31ad8a8f21d5e7d1e817fbd2e4f3803515 (diff)
Also make sure hinting won't crash on reload.
(Closes issue #13312) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@138409 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-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);
}