libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 8f4e404a0cec279470b94f1e49ed5010b793d6ad
parent 5711839b32ec29b02e1d9b69e7ebd4c7d9bfb659
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 14 Aug 2010 20:31:19 +0000

fix leak

Diffstat:
Msrc/plugins/id3v23_extractor.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/plugins/id3v23_extractor.c b/src/plugins/id3v23_extractor.c @@ -354,7 +354,11 @@ EXTRACTOR_id3v23_extract (const unsigned char *data, off++; if ( (off >= csize) || (data[pos+off] != '\0') ) - return 0; /* malformed */ + { + if (mime != NULL) + free (mime); + return 0; /* malformed */ + } off++; if ( (mime != NULL) && (0 == strcasecmp ("-->",