History

avfilter/vf_uspp: Fix leak of qp-table on error

Fixes Coverity issue #1473500.

Andreas Rheinhardt committed 5 years ago

Commit 08588531 parent 03641881 file · +2 −0Browse files

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

Unified · Split

libavfilter/vf_uspp.c+2−0
@@ -425,6 +425,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 424 unmodified lines
425425 out = ff_get_video_buffer(outlink, aligned_w, aligned_h);
426426 if (!out) {
427427 av_frame_free(&in);
428+ if (qp_table != uspp->non_b_qp_table)
429+ av_free(qp_table);
428430 return AVERROR(ENOMEM);
429431 }
430432 av_frame_copy_props(out, in);

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