From 081913aec53b7459711afe11f44a763dcd74703d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 20 Dec 2014 16:53:14 +0100 Subject: [PATCH] avformat/id3v2: Use av_freep() avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/id3v2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index cbf43757fe..847d4af2c1 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -218,10 +218,10 @@ static int check_tag(AVIOContext *s, int offset, unsigned int len) static void free_geobtag(void *obj) { ID3v2ExtraMetaGEOB *geob = obj; - av_free(geob->mime_type); - av_free(geob->file_name); - av_free(geob->description); - av_free(geob->data); + av_freep(&geob->mime_type); + av_freep(&geob->file_name); + av_freep(&geob->description); + av_freep(&geob->data); av_free(geob); }