[FFmpeg-devel] [PATCH v3] fftools/cmdutils: Add av_freep() to avoid memory leak
Michael Niedermayer
michael at niedermayer.cc
Sat Jul 19 03:20:03 EEST 2025
On Tue, Jul 15, 2025 at 12:31:09AM +0000, Jiasheng Jiang wrote:
> Add av_freep() to free new_elem to avoid memory leak.
>
> Fixes: 3ca1e31e63 ("fftools/cmdutils: Atomically add elements to list of pointers, fix crash")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
> Changelog:
>
> v2 -> v3:
>
> 1. Replace with a correct fixes tag.
>
> v1 -> v2:
>
> 1. Remove the unnecessary return NULL.
> ---
> fftools/cmdutils.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
will apply
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The day soldiers stop bringing you their problems is the day you have stopped
leading them. They have either lost confidence that you can help or concluded
you do not care. Either case is a failure of leadership. - Colin Powell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250719/dad79840/attachment.sig>
More information about the ffmpeg-devel
mailing list