Re: [FFmpeg-devel] [PATCH] avcodec/libdavs2: workaround memory leak

2022-07-03 Thread zhilizhao(赵志立)
> On Jun 27, 2022, at 5:57 PM, Zhao Zhili wrote: > > davs2_decoder_close doesn't free those on the fly frames which > don't get output yet. It's a design bug, but easy to workaround. > > Before the patch: > Direct leak of 1198606 byte(s) in 2 object(s) allocated from: >#0 0x563af5e1e5f0 i

[FFmpeg-devel] [PATCH] avcodec/libdavs2: workaround memory leak

2022-06-27 Thread Zhao Zhili
davs2_decoder_close doesn't free those on the fly frames which don't get output yet. It's a design bug, but easy to workaround. Before the patch: Direct leak of 1198606 byte(s) in 2 object(s) allocated from: #0 0x563af5e1e5f0 in malloc (ffmpeg+0x6675f0) #1 0x563af9765ef3 in davs2_malloc da