From 30ba28fe8e5757ab4ee61b9c0e8a418bd7d54b50 Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Date: Mon, 20 Apr 2015 11:20:41 -0700 Subject: [PATCH] webmdashenc: Fix potential memory leak Fix potential memory leak in WebM DASH Muxer. This fixes coverity scan CID 1295088. Signed-off-by: Vignesh Venkatasubramanian Signed-off-by: Michael Niedermayer --- libavformat/webmdashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index a8eb8acb52..6b94e54801 100644 --- a/libavformat/webmdashenc.c +++ b/libavformat/webmdashenc.c @@ -398,8 +398,8 @@ static int write_adaptation_set(AVFormatContext *s, int as_index) ret = write_representation(s, s->streams[as->streams[i]], representation_id, !width_in_as, !height_in_as, !sample_rate_in_as); - if (ret) return ret; av_free(representation_id); + if (ret) return ret; } avio_printf(s->pb, "\n"); return 0;