History

avfilter/af_biquads: fix possible leak on error

Recently introduced.

Paul B Mahol committed 4 years ago

Commit 93a076d1 parent ac7dc201 file · +3 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_biquads.c+3−1
@@ -875,8 +875,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) · 874 unmodified lines
875875 return ff_filter_frame(outlink, buf);
876876
877877 ret = av_channel_layout_copy(&s->ch_layout, &inlink->ch_layout);
878− if (ret < 0)
878+ if (ret < 0) {
879+ av_frame_free(&buf);
879880 return ret;
881+ }
880882 if (strcmp(s->ch_layout_str, "all"))
881883 av_channel_layout_from_string(&s->ch_layout,
882884 s->ch_layout_str);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t