diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2015-04-20 11:20:41 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-21 01:12:27 +0200 |
commit | 30ba28fe8e5757ab4ee61b9c0e8a418bd7d54b50 (patch) | |
tree | 96dd192a36f5e8764f255869493f67d010b4582a /libavformat | |
parent | ba631b791435c395361e2026fc7419b341e57813 (diff) | |
download | ffmpeg-30ba28fe8e5757ab4ee61b9c0e8a418bd7d54b50.tar.gz |
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@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/webmdashenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "</AdaptationSet>\n"); return 0; |