[FFmpeg-cvslog] avformat/id3v2: Use av_freep() avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sat Dec 20 17:04:46 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 20 16:53:14 2014 +0100| [081913aec53b7459711afe11f44a763dcd74703d] | committer: Michael Niedermayer
avformat/id3v2: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=081913aec53b7459711afe11f44a763dcd74703d
---
libavformat/id3v2.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index cbf4375..847d4af 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);
}
More information about the ffmpeg-cvslog
mailing list