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
1369 1369
1370 if (!s->background) {1370 if (!s->background) {
1371 ret = draw_background(ctx);1371 ret = draw_background(ctx);
1372 if (ret < 0)1372 if (ret < 0) {
1373 av_frame_free(&out);
1373 return ret;1374 return ret;
1375 }
1374 s->background = 1;1376 s->background = 1;
1375 }1377 }
1376 for (y = 0; y < outlink->h; y++) {1378 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