Merged revisions 114112 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Mon, 14 Apr 2008 16:25:09 +0000 (16:25 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 14 Apr 2008 16:25:09 +0000 (16:25 +0000)
commitdf7cb6b30b7af0d0bfc59f7843081b9c2125ef6e
tree62ec254bf112d6a516e03d939077f3c086e77184
parent6fad8249f55683f22fe50bfd87ef56ad69fb92c1
Merged revisions 114112 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114112 | mmichelson | 2008-04-14 11:24:22 -0500 (Mon, 14 Apr 2008) | 9 lines

If the datastore has been moved to another channel due to a masquerade, then
freeing the datastore here causes an eventual double free when the new channel
hangs up. We should only free the datastore if we were able to successfully remove
it from the channel we are referencing (i.e. the datastore was not moved).

(closes issue #12359)
Reported by: pguido

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_dial.c
apps/app_queue.c