diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-27 09:31:41 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-27 09:31:41 +0000 |
commit | dbb376577985ceec25482fe06be0097ef2664857 (patch) | |
tree | 5fcb666a1caa0069ffeb12fd93fa006172e36c41 /libavformat/mov.c | |
parent | 2f4568e525ffbc253bd7777b5cb6bf3706988cae (diff) | |
download | ffmpeg-dbb376577985ceec25482fe06be0097ef2664857.tar.gz |
free in case of multiple type == 2
Originally committed as revision 12263 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 1 |
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); |