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;