On Thu,  5 Jan 2012 20:19:33 +0100, Janne Grunau <[email protected]> wrote:
> ---
>  libavformat/riff.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/riff.c b/libavformat/riff.c
> index 8489bc7..5c59796 100644
> --- a/libavformat/riff.c
> +++ b/libavformat/riff.c
> @@ -671,8 +671,7 @@ int ff_read_riff_info(AVFormatContext *s, int64_t size)
>          AV_WL32(key, chunk_code);
>  
>          if (avio_read(pb, value, chunk_size) != chunk_size) {
> -            av_freep(key);
> -            av_freep(value);
> +            av_free(value);
>              av_log(s, AV_LOG_ERROR, "premature end of file while reading 
> INFO tag\n");
>              return AVERROR_INVALIDDATA;
>          }
> -- 
> 1.7.8.2
> 

Looks good.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to