On 17/11/14 00:22, Vittorio Giovara wrote:
> CC: [email protected]
> Bug-Id: CID 733795
> ---
>  libavcodec/libvpxenc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
> index 86e4be9..8ff7b28 100644
> --- a/libavcodec/libvpxenc.c
> +++ b/libavcodec/libvpxenc.c
> @@ -470,6 +470,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket 
> *pkt_out,
>                      av_log(avctx, AV_LOG_ERROR,
>                             "Data buffer alloc (%zu bytes) failed\n",
>                             cx_frame->sz);
> +                    av_freep(&cx_frame);
>                      return AVERROR(ENOMEM);
>                  }
>                  memcpy(cx_frame->buf, pkt->data.frame.buf, 
> pkt->data.frame.sz);
> 

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

Reply via email to