aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/truemotion1.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-22 23:54:13 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:56 +0100
commit3b3d85c26eaeaa7fa960e3268520b2af34035936 (patch)
tree097eed9c030c0b986fe7c3053b22d7b25ac2b3f4 /libavcodec/truemotion1.c
parentad0132fab81916cdc60caf893ec805111d12ed9b (diff)
downloadffmpeg-3b3d85c26eaeaa7fa960e3268520b2af34035936.tar.gz
avfilter/graphparser: Fix leaks when parsing inputs fails
parse_inputs() uses a temporary linked list to parse the labeled inputs of a filter; said linked list owns its elements (and their names). On success, the list of unlabeled inputs is appened to the end of the list of labeled inputs and the new list is returned; yet on failures, nothing frees the already existing elements of the temporary linked list, leading to a leak. This can be triggered by e.g. using '-vf [v][' in the FFmpeg command-line tool. This leak seems to exist since 4e781c25b7b1955d1a9a0b0771c3ce1acb0957bd. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit b3f6dee728c2741388638f8343379bf0f0ef5946)
Diffstat (limited to 'libavcodec/truemotion1.c')
0 files changed, 0 insertions, 0 deletions