summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-27 09:31:41 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-27 09:31:41 +0000
commitdbb376577985ceec25482fe06be0097ef2664857 (patch)
tree5fcb666a1caa0069ffeb12fd93fa006172e36c41 /libavformat
parent2f4568e525ffbc253bd7777b5cb6bf3706988cae (diff)
free in case of multiple type == 2
Originally committed as revision 12263 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3a18e662c2..1d666dd983 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);