rm: fix memory leak on init failure
authorwm4 <nfxjfg@googlemail.com>
Fri, 9 Jan 2015 20:24:54 +0000 (21:24 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Jan 2015 23:26:43 +0000 (00:26 +0100)
commitaab74a38b8ba910a383dd82953061d5c42772ae9
tree59f559b1b1e71f326960c50b8141d412abe26e5b
parent11d8fa5e9d695fc3f9f553dc313edd9d4e45ed18
rm: fix memory leak on init failure

AVInputFormat.read_close is not called if AVInputFormat.read_header
fails, so this needs to be handled separately.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rmdec.c