History

avfilter/vf_tiltandshift: Free dst on error

Fixes: CID1559901 Resource leak

Michael Niedermayer committed 2 years ago

Commit 20e59af1 parent e6c0c571 file · +3 −1Browse files

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

Unified · Split

libavfilter/vf_tiltandshift.c+3−1
@@ -237,8 +237,10 @@ static int output_frame(AVFilterLink *outlink) · 236 unmodified lines
237237
238238 // set correct timestamps and props as long as there is proper input
239239 ret = av_frame_copy_props(dst, s->input);
240− if (ret < 0)
240+ if (ret < 0) {
241+ av_frame_free(&dst);
241242 return ret;
243+ }
242244
243245 // discard frame at the top of the list since it has been fully processed
244246 list_remove_head(s);

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