diff --git a/libavformat/mov.c b/libavformat/mov.c index 3a18e662c2f8ccdcb34bcf77d955bcb8656d8e02..1d666dd983a06825c894efd8d52070093879e308 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);