From f8210f892ec5cb3eeb0e267a18ae8531141104b5 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sat, 3 Mar 2012 12:20:30 +0100 Subject: [PATCH] vf_fade: free type when overwriting it. --- libavfilter/vf_fade.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c index 7fe0dae3f4..79c8994d00 100644 --- a/libavfilter/vf_fade.c +++ b/libavfilter/vf_fade.c @@ -94,6 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) } if (expr = av_strtok(args1, ":", &bufptr)) { + av_free(fade->type); if (!(fade->type = av_strdup(expr))) { ret = AVERROR(ENOMEM); goto end;