[FFmpeg-devel] [PATCH V2 4/5] libavutil/opt: fix memory leak after av_dict_parse_string fail

Michael Niedermayer michael at niedermayer.cc
Fri Jan 3 01:21:09 EET 2020


On Thu, Jan 02, 2020 at 07:55:04PM +0800, Jun Zhao wrote:
> From: Jun Zhao <barryjzhao at tencent.com>
> 
> In case of failure, all the successfully set entries are stored in
> *pm. We need to manually free the created dictionary to avoid
> memory leak.
> 
> Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> ---
>  libavutil/opt.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200103/3e231eed/attachment.sig>


More information about the ffmpeg-devel mailing list