mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-09 16:19:35 +00:00
lavfi/silencedetect: add av_opt_free() call.
This avoids a memleak with noise_str.
This commit is contained in:
parent
bd2f8e8f79
commit
6ac5e3fe9d
@ -73,6 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
|
|||||||
silence->noise_str);
|
silence->noise_str);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
av_opt_free(silence);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user