On Sun, Jun 29, 2025 at 02:45:25PM +0800, Lidong Yan wrote: > In sunrast_decode_frame(), we use av_malloc_array() allocates memory > to ptr and ptr2. However if buf_end - buf < 1, this function returns > error code without freeing this memory thus cause a leak. Add av_freep() > before return. > > Signed-off-by: Lidong Yan <502024330...@smail.nju.edu.cn> > --- > libavcodec/sunrast.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)
will apply might be nice to factor this so its freed in a common place thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The misfortune of the wise is better than the prosperity of the fool. -- Epicurus
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".