Opened 5 years ago
Closed 5 years ago
#8094 closed defect (fixed)
Memory leaks from realloc
Reported by: | Suhwan | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | ffmpeg |
Version: | git-master | Keywords: | leak |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Summary of the bug:
There is a memory leak from realloc
How to reproduce:
% ./ffmpeg_g -i audio-gaps.ogg -loglevel 99 -c copy -map 0 -y -disposition:v:174 a64multi -c:a:171 a64multi -disposition:s:9 a64multi -stream_loop 24 -t 3 -target vcd -r 82 -ab 907 -ar 22050 -ac 4 -b:v 866k -level 12 -strict 3 tmp.mp4 ffmpeg version git-master built on ... clang-6.0
ASAN report:
==48423==ERROR: LeakSanitizer: detected memory leaks Direct leak of 96 byte(s) in 3 object(s) allocated from: #0 0x4de8d0 in realloc (ffmpeg_g+0x4de8d0) #1 0x5ce398 in grow_array ffmpeg/fftools/cmdutils.c:2163:24 Indirect leak of 34 byte(s) in 6 object(s) allocated from: #0 0x4de8d0 in realloc (ffmpeg_g+0x4de8d0) #1 0x8500297 in av_realloc ffmpeg/libavutil/mem.c:144:12 #2 0x8500297 in av_strdup ffmpeg/libavutil/mem.c:256 #3 0x5b5001 in parse_optgroup ffmpeg/fftools/cmdutils.c:437:15 Indirect leak of 15 byte(s) in 2 object(s) allocated from: #0 0x4de8d0 in realloc (ffmpeg_g+0x4de8d0) #1 0x8500297 in av_realloc ffmpeg/libavutil/mem.c:144:12 #2 0x8500297 in av_strdup ffmpeg/libavutil/mem.c:256 #3 0x5b5001 in parse_optgroup ffmpeg/fftools/cmdutils.c:437:15 #4 0x69746c756d343660 (<unknown module>) SUMMARY: AddressSanitizer: 145 byte(s) leaked in 11 allocation(s).
Attachments (2)
Change History (5)
by , 5 years ago
Attachment: | debug_report added |
---|
comment:1 by , 5 years ago
Priority: | normal → important |
---|
comment:2 by , 5 years ago
Component: | undetermined → ffmpeg |
---|---|
Keywords: | leak added |
Priority: | important → minor |
Reproduced by developer: | set |
Status: | new → open |
Not a library leak afaics.
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixed by Andreas Rheinhardt in 21265f42ecb265debe9fec1dbfd0cb7de5a8aefb
Note:
See TracTickets
for help on using tickets.
Valgrind report