Message ID | 20200919163610.1099233-9-andreas.rheinhardt@gmail.com |
---|---|
State | Accepted |
Commit | aed96e13c1dafd44a6995f23fadd9f64e90547d4 |
Headers | show |
Series | [FFmpeg-devel,01/21] avformat/dashdec: Avoid double free on error | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 55212661be..4f87ef981b 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -2137,6 +2137,7 @@ static int dash_read_header(AVFormatContext *s) AVProgram *program; program = av_new_program(s, 0); if (!program) { + ret = AVERROR(ENOMEM); goto fail; }
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> --- What do we need this program for anyway? What sense does it make to create a single program containing all streams? libavformat/dashdec.c | 1 + 1 file changed, 1 insertion(+)