1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00
FFmpeg/libavcodec
Zhao Zhili 066368e837 avcodec/libdavs2: workaround memory leak
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 davs2/source/common/common.h:1240
    #2 0x563af9765ef3 in davs2_alloc_picture davs2/source/common/header.cc:815

Indirect leak of 3595818 byte(s) in 6 object(s) allocated from:
    #0 0x563af5e1e5f0 in malloc (ffmpeg+0x6675f0)
    #1 0x563af9765ef3 in davs2_malloc davs2/source/common/common.h:1240
    #2 0x563af9765ef3 in davs2_alloc_picture davs2/source/common/header.cc:815

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2022-07-04 11:30:08 +08:00
..
2022-03-15 09:42:39 -03:00
2022-03-15 09:42:39 -03:00
2022-02-07 00:31:23 +01:00
2022-03-18 19:56:50 +01:00
2022-03-18 19:56:50 +01:00
2022-06-25 09:05:58 +08:00
2022-06-24 15:37:23 +08:00
2022-06-24 15:37:23 +08:00
2022-05-08 10:38:54 +08:00
2022-03-15 10:37:54 -03:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-02-24 12:56:49 +01:00
2021-08-05 19:46:33 +02:00
2022-03-15 09:42:41 -03:00
2022-03-15 09:42:41 -03:00
2022-01-26 15:30:28 +01:00
2021-10-09 11:42:16 +02:00
2022-06-25 09:05:58 +08:00
2022-05-30 19:44:11 +02:00
2022-06-16 10:23:30 +02:00
2022-07-03 15:16:31 +02:00
2022-03-15 09:42:43 -03:00
2022-03-15 09:42:43 -03:00
2022-02-18 20:11:06 +01:00
2022-02-18 20:11:06 +01:00
2022-02-07 00:31:23 +01:00
2021-07-22 14:47:57 +02:00
2022-03-16 14:04:35 +02:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2021-07-22 14:47:57 +02:00
2021-10-10 17:44:41 +02:00
2022-04-10 20:12:23 +02:00
2022-04-13 00:37:06 +02:00
2022-06-25 09:05:58 +08:00
2022-07-03 15:16:31 +02:00
2022-03-15 09:42:45 -03:00
2021-09-12 22:23:35 +02:00