mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
vf_sab: Fix memleak
Fixes CID1030353 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8e887ca1fe
commit
d3e89f2641
@ -181,8 +181,10 @@ static int open_filter_param(FilterParam *f, int width, int height, unsigned int
|
||||
f->dist_width = vec->length;
|
||||
f->dist_linesize = FFALIGN(vec->length, 8);
|
||||
f->dist_coeff = av_malloc(f->dist_width * f->dist_linesize * sizeof(*f->dist_coeff));
|
||||
if (!f->dist_coeff)
|
||||
if (!f->dist_coeff) {
|
||||
sws_freeVec(vec);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
for (y = 0; y < vec->length; y++) {
|
||||
for (x = 0; x < vec->length; x++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user