Message ID | 1577856040-17409-9-git-send-email-mypopydev@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,V1,01/12] lavc/bsf: fix memory leak after av_dict_parse_string fail | expand |
Context | Check | Description |
---|---|---|
andriy/ffmpeg-patchwork | fail | Failed to apply patch |
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 8c28fb6..c37678d 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1305,8 +1305,10 @@ static int dash_init(AVFormatContext *s) if (c->format_options_str) { ret = av_dict_parse_string(&opts, c->format_options_str, "=", ":", 0); - if (ret < 0) + if (ret < 0) { + av_dict_free(&opts); return ret; + } } if (os->segment_type == SEGMENT_TYPE_MP4) {