[FFmpeg-devel] [PATCH V2 1/5] lavc/bsf: fix memory leak after av_dict_parse_string fail
Michael Niedermayer
michael at niedermayer.cc
Fri Jan 3 01:28:02 EET 2020
On Thu, Jan 02, 2020 at 07:55:01PM +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>
> ---
> libavcodec/bsf.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
LGTM
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
"You are 36 times more likely to die in a bathtub than at the hands of a
terrorist. Also, you are 2.5 times more likely to become a president and
2 times more likely to become an astronaut, than to die in a terrorist
attack." -- Thoughty2
-------------- 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/9b3ed3e1/attachment.sig>
More information about the ffmpeg-devel
mailing list