]> git.sesse.net Git - ffmpeg/commit
avfilter/af_headphone: Fix leak of channel layouts list on error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 24 Aug 2020 20:21:51 +0000 (22:21 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 26 Aug 2020 21:52:57 +0000 (23:52 +0200)
commitca8e5dedc7fabae3df76ea11d9952070cbb19620
tree3c09cfb26eb66f2c2d69370c04dcac6e4f09a66c
parent0960da42f5414a24497c75787ff4be318ae41421
avfilter/af_headphone: Fix leak of channel layouts list on error

In case the multichannel HRIR mode was enabled, an error could happen
between allocating a channel layouts list and attaching it to its target
destination. If an error happened, the list would leak. This is fixed by
attaching the list to its target directly after its allocation.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_headphone.c