History

avfilter/vf_uspp: Fix potential leak of dict on error

Andreas Rheinhardt committed 6 years ago

Commit 84438481 parent 98171d11 file · +1 −1Browse files

Unified · Split

libavfilter/vf_uspp.c+1−1
@@ -362,9 +362,9 @@ static int config_input(AVFilterLink *inlink) · 361 unmodified lines
362362 avctx_enc->global_quality = 123;
363363 av_dict_set(&opts, "no_bitstream", "1", 0);
364364 ret = avcodec_open2(avctx_enc, enc, &opts);
365+ av_dict_free(&opts);
365366 if (ret < 0)
366367 return ret;
367− av_dict_free(&opts);
368368 av_assert0(avctx_enc->codec);
369369 }
370370

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