]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_signature: Fix leak of string upon error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 24 Aug 2020 22:20:35 +0000 (00:20 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 26 Aug 2020 21:52:56 +0000 (23:52 +0200)
commit16ea88778e6f4e2d49318ea6e02fa938ac2f401e
tree320f9486c0be41534fe3dd07b08654f51862be2a
parent37838417b8045fa3a49acc55546c741d3f2ac602
avfilter/vf_signature: Fix leak of string upon error

If an error happens between allocating a string intended to be used as
an inpad's name and attaching it to its input pad, the string leaks.
Fix this by inserting the inpad directly after allocating its string.

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