[FFmpeg-cvslog] webmdashenc: Fix potential memory leak
Vignesh Venkatasubramanian
git at videolan.org
Tue Apr 21 01:29:40 CEST 2015
ffmpeg | branch: master | Vignesh Venkatasubramanian <vigneshv at google.com> | Mon Apr 20 11:20:41 2015 -0700| [30ba28fe8e5757ab4ee61b9c0e8a418bd7d54b50] | committer: Michael Niedermayer
webmdashenc: Fix potential memory leak
Fix potential memory leak in WebM DASH Muxer. This fixes coverity
scan CID 1295088.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv at google.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=30ba28fe8e5757ab4ee61b9c0e8a418bd7d54b50
---
libavformat/webmdashenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index a8eb8ac..6b94e54 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, "</AdaptationSet>\n");
return 0;
More information about the ffmpeg-cvslog
mailing list