From dbb376577985ceec25482fe06be0097ef2664857 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 27 Feb 2008 09:31:41 +0000 Subject: [PATCH] free in case of multiple type == 2 Originally committed as revision 12263 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 3a18e662c..1d666dd98 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -254,6 +254,7 @@ static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) if (len&1) len += 1; if (type == 2) { // absolute path + av_free(dref->path); dref->path = av_mallocz(len+1); if (!dref->path) return AVERROR(ENOMEM); -- 2.34.1