commit 27e35778422d27a497d8a9adf39b405d60988883
parent 1e0bbbd44c4f2dff0ef7bf0445c3872023cfc3b9
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 18 Apr 2007 20:02:46 +0000
better
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/plugins/id3v23extractor.c b/src/plugins/id3v23extractor.c
@@ -1,6 +1,6 @@
/*
This file is part of libextractor.
- (C) 2002, 2003, 2004, 2006 Vidyut Samanta and Christian Grothoff
+ (C) 2002, 2003, 2004, 2006, 2007 Vidyut Samanta and Christian Grothoff
libextractor is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -205,7 +205,8 @@ libextractor_id3v23_extract(const char * filename,
word,
tmap[i].type);
} else {
- free(word);
+ if (word != NULL)
+ free(word);
}
break;
}