diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-03 11:23:23 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-03 11:23:23 +0200 |
commit | 8ca89e52df89b87b278f9d7e369d1b064b740415 (patch) | |
tree | a06449878a894a008b7274961b51e24cb823409b /libavfilter/f_streamselect.c | |
parent | d492907e7817b9ba00c01476e61bf5fb7fae5f6a (diff) | |
download | ffmpeg-8ca89e52df89b87b278f9d7e369d1b064b740415.tar.gz |
avfilter/f_streamselect: fix memleaks of pad names
Diffstat (limited to 'libavfilter/f_streamselect.c')
-rw-r--r-- | libavfilter/f_streamselect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c index 4b913d37f4..7a1ff775f4 100644 --- a/libavfilter/f_streamselect.c +++ b/libavfilter/f_streamselect.c @@ -294,6 +294,12 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&s->map); av_freep(&s->frames); ff_framesync_uninit(&s->fs); + + for (int i = 0; i < ctx->nb_inputs; i++) + av_freep(&ctx->input_pads[i].name); + + for (int i = 0; i < ctx->nb_outputs; i++) + av_freep(&ctx->output_pads[i].name); } static int query_formats(AVFilterContext *ctx) |