res_fax: Resolve T38 gateway frame leak.
authorCorey Farrell <git@cfware.com>
Tue, 28 Oct 2014 21:10:42 +0000 (21:10 +0000)
committerCorey Farrell <git@cfware.com>
Tue, 28 Oct 2014 21:10:42 +0000 (21:10 +0000)
commit7205d76d7d001b61afcb5466410a3892cdcc6047
tree93edb7146983b3dd6ca6a766ae51d2cef09ea315
parent67e496c275fa2fa04b638eec620a2c08e404339b
res_fax: Resolve T38 gateway frame leak.

When frames are translated by a fax gateway they need to be freed.  The
existing call to ast_frfree was unreachable.  This change reorganizes
fax_gateway_framehook to ensure that ast_frfree is called when needed.

ASTERISK-24457 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4115/
........

Merged revisions 426527 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 426528 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 426529 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@426530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_fax.c