aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAlexandra Hájková <alexandra.khirnova@gmail.com>2015-07-02 12:26:19 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-07-03 01:50:09 +0200
commit9752d2e6cc9b9e8070ec515db8ed8374683d0856 (patch)
tree5a09c65a4d09bc43dd7bd0063986f11e2926c3c8 /libavformat
parent910247f1720c6aae422723c05dac6d0b19f20bec (diff)
downloadffmpeg-9752d2e6cc9b9e8070ec515db8ed8374683d0856.tar.gz
asfdec: prevent possible memory leak in the asf_read_metadata_obj
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/asfdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index c12d8c79a0..f2dd489b99 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -572,7 +572,8 @@ static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
if ((ret = process_metadata(s, name, name_len, val_len, type,
&asf->asf_sd[st_num].asf_met)) < 0)
break;
- }
+ } else
+ av_freep(&name);
}
}