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

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

Unified · Split

libavfilter/vf_uspp.c+1−1
@@ -362,9 +362,9 @@ static int config_input(AVFilterLink *inlink) · 361 unmodified lines
362 avctx_enc->global_quality = 123;362 avctx_enc->global_quality = 123;
363 av_dict_set(&opts, "no_bitstream", "1", 0);363 av_dict_set(&opts, "no_bitstream", "1", 0);
364 ret = avcodec_open2(avctx_enc, enc, &opts);364 ret = avcodec_open2(avctx_enc, enc, &opts);
365 av_dict_free(&opts);
365 if (ret < 0)366 if (ret < 0)
366 return ret;367 return ret;
367 av_dict_free(&opts);
368 av_assert0(avctx_enc->codec);368 av_assert0(avctx_enc->codec);
369 }369 }
370 370

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