changeset 3092:f9cacbd12145 libavformat

free in case of multiple type == 2
author bcoudurier
date Wed, 27 Feb 2008 09:31:41 +0000
parents b8df4b5e16d0
children c6b13e807700
files mov.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Wed Feb 27 09:30:56 2008 +0000
+++ b/mov.c	Wed Feb 27 09:31:41 2008 +0000
@@ -254,6 +254,7 @@
                 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);