Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: libavformat/mov.c

Issue 9373002: Fix valgrind and asan memory leaks and crashes. (Closed) Base URL: ssh://gerrit.chromium.org:29418/chromium/third_party/ffmpeg.git@master
Patch Set: Make vp3 fix an ignore. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libavcodec/vp8.c ('k') | libavformat/oggdec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libavformat/mov.c
diff --git a/libavformat/mov.c b/libavformat/mov.c
index c2c980f0a0b2b1ecc4dfbd30a3540d7b1a8bd282..81e96420ef9867656e0024c181faac21523927b4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2962,6 +2962,12 @@ static int mov_read_close(AVFormatContext *s)
av_freep(&sc->drefs);
if (sc->pb && sc->pb != s->pb)
avio_close(sc->pb);
+ av_freep(&sc->chunk_offsets);
+ av_freep(&sc->keyframes);
+ av_freep(&sc->sample_sizes);
+ av_freep(&sc->stps_data);
+ av_freep(&sc->stsc_data);
+ av_freep(&sc->stts_data);
}
if (mov->dv_demux) {
« no previous file with comments | « libavcodec/vp8.c ('k') | libavformat/oggdec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698