diff options
author | Mark Michelson <mmichelson@digium.com> | 2015-01-30 16:47:50 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2015-01-30 16:47:50 +0000 |
commit | 43dd42d8aeee1eff844f605544901016047348e2 (patch) | |
tree | b22def97513a57f91e7d241f9a7adb497d617471 /main/pbx.c | |
parent | f7d23dfcc62c5491956570614365eb7ca39a7655 (diff) |
Fix some memory leaks.
These memory leaks were found and fixed by John Hardin. I'm just
committing them for him.
ASTERISK-24736 #close
Reported by Mark Michelson
Review: https://reviewboard.asterisk.org/r/4389
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index f13fad002..7f7f627e7 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -8827,7 +8827,7 @@ static void context_merge(struct ast_context **extcontexts, struct ast_hashtab * dupdstr = ast_strdup(prio_item->data); res1 = ast_add_extension2(new, 0, prio_item->exten, prio_item->priority, prio_item->label, - prio_item->matchcid ? prio_item->cidmatch : NULL, prio_item->app, dupdstr, prio_item->datad, prio_item->registrar); + prio_item->matchcid ? prio_item->cidmatch : NULL, prio_item->app, dupdstr, ast_free_ptr, prio_item->registrar); if (!res1 && new_exten_item && new_prio_item){ ast_verb(3,"Dropping old dialplan item %s/%s/%d [%s(%s)] (registrar=%s) due to conflict with new dialplan\n", context->name, prio_item->exten, prio_item->priority, prio_item->app, (char*)prio_item->data, prio_item->registrar); |