]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/file.c: fix possible extra ast_module_unref to format modules.
authorCorey Farrell <git@cfware.com>
Thu, 6 Nov 2014 12:13:56 +0000 (12:13 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 6 Nov 2014 12:13:56 +0000 (12:13 +0000)
commitf2d43e7e075d1be198cc4931fc9a9d454a07376b
treec662181795151054651efd030aa33ffe33598878
parent1c255e711e6ccb0cf51bf6be7113d803ff8c5365
main/file.c: fix possible extra ast_module_unref to format modules.

fn_wrapper only adds a reference to the format's module if the file
was able to be opened.  If not this causes an unmatched
ast_module_unref in filestream_destructor.  Move ast_module_ref to
get_stream.

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

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@427466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/file.c