You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/anequalizer: fix memory leak in error handling path
free the pad.name in error handling path to avoid memory leak. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
@@ -205,9 +205,11 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
.type = AVMEDIA_TYPE_VIDEO,
|
||||
.config_props = config_video,
|
||||
};
|
||||
if (!vpad.name)
|
||||
if (!vpad.name) {
|
||||
av_freep(&pad.name);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
}
|
||||
|
||||
ret = ff_insert_outpad(ctx, 0, &pad);
|
||||
if (ret < 0) {
|
||||
|
Reference in New Issue
Block a user