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

Unified · Split

libavfilter/vf_tiltandshift.c+3−1
@@ -237,8 +237,10 @@ static int output_frame(AVFilterLink *outlink) · 236 unmodified lines
237 237
238 // set correct timestamps and props as long as there is proper input238 // set correct timestamps and props as long as there is proper input
239 ret = av_frame_copy_props(dst, s->input);239 ret = av_frame_copy_props(dst, s->input);
240 if (ret < 0)240 if (ret < 0) {
241 av_frame_free(&dst);
241 return ret;242 return ret;
243 }
242 244
243 // discard frame at the top of the list since it has been fully processed245 // discard frame at the top of the list since it has been fully processed
244 list_remove_head(s);246 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