Re: [FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: fix potential memory leak.

2021-02-16 Thread James Zern
On Tue, Feb 16, 2021 at 4:17 PM Wonkap Jang wrote: > > On Tue, Feb 16, 2021 at 1:02 PM James Zern > wrote: > [...] > > > > > > > > while ((en2 = > > av_dict_get(ctx->vpx_ref_frame_config, "", en2, AV_DICT_IGNORE_SUFFIX))) { > > > @@ -1604,6 +1605,8 @@ static int

Re: [FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: fix potential memory leak.

2021-02-16 Thread Wonkap Jang
On Tue, Feb 16, 2021 at 1:02 PM James Zern wrote: > Hi, > > On Mon, Feb 15, 2021 at 10:37 PM Wonkap Jang > wrote: > > > > While parsing ref_frame_config, AVdictionary needs to be manually > > deallocated. > > --- > > libavcodec/libvpxenc.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > >

Re: [FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: fix potential memory leak.

2021-02-16 Thread James Zern
Hi, On Mon, Feb 15, 2021 at 10:37 PM Wonkap Jang wrote: > > While parsing ref_frame_config, AVdictionary needs to be manually > deallocated. > --- > libavcodec/libvpxenc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c > index

[FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: fix potential memory leak.

2021-02-15 Thread Wonkap Jang
While parsing ref_frame_config, AVdictionary needs to be manually deallocated. --- libavcodec/libvpxenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 284cb9a108..941c3fdd88 100644 --- a/libavcodec/libvpxenc.c +++