History

avfilter/vf_ciescope: Free out AVFrame on error

Fixes memleak Fixes part of CID1197065

Michael Niedermayer committed 9 years ago

Commit 3edbc241 parent c331be21 file · +3 −1Browse files

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

Unified · Split

libavfilter/vf_ciescope.c+3−1
@@ -1369,8 +1369,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 1368 unmodified lines
13691369
13701370 if (!s->background) {
13711371 ret = draw_background(ctx);
1372− if (ret < 0)
1372+ if (ret < 0) {
1373+ av_frame_free(&out);
13731374 return ret;
1375+ }
13741376 s->background = 1;
13751377 }
13761378 for (y = 0; y < outlink->h; y++) {

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