[FFmpeg-devel] [PATCH 1/4] vf_fade: free type when overwriting it.

Stefano Sabatini stefasab at gmail.com
Sat Mar 3 14:49:47 CET 2012


On date Saturday 2012-03-03 13:45:39 +0100, Nicolas George encoded:
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavfilter/vf_fade.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> 
> This patch series should make FATE-valgrind slightly more happy.
> 
> 
> diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
> index 7fe0dae..79c8994 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;

LGTM, thanks.
-- 
FFmpeg = Faithful Furious MultiPurpose Exciting Gangster


More information about the ffmpeg-devel mailing list