lavf/utils: fix mem leak
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Wed, 9 Apr 2014 20:43:48 +0000 (22:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Apr 2014 01:24:07 +0000 (03:24 +0200)
commite1c48e3593fb2e848fd7fb910ea3d807941f8e91
tree83daf1faafbd35bdb0b4e063e593a162fc312b3d
parentfbf05759e38f075305667e2019d535f4e757c6e2
lavf/utils: fix mem leak

Calling avformat_free_context() right after avformat_alloc_output_context2()
leaved option's default values not freed.
Options were freed only in av_write_trailer().

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c