mirror of https://github.com/FFmpeg/FFmpeg.git
av_realloc_f() frees the buffer it is given on allocation
failure. But in this case, the buffer is an array of
ownership pointers, causing leaks on error. Furthermore,
the count of pointers is unchanged on error and the codec's
close function uses it to free said ownership pointers,
causing a NPD.
This is a regression since 46412a8935
.
Fix this by switching to av_realloc_array().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
parent
a4800643bb
commit
2f59648aed
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue