[easytag] Fix memory leak in id3lib buggy check
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak in id3lib buggy check
- Date: Fri, 26 Sep 2014 07:48:28 +0000 (UTC)
commit 0a11b1c1580d703d4136df5feef4cfb52948fcdc
Author: David King <amigadave amigadave com>
Date: Fri Sep 26 08:38:28 2014 +0100
Fix memory leak in id3lib buggy check
Free the result string.
src/tags/id3_tag.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tags/id3_tag.c b/src/tags/id3_tag.c
index c4d00b9..71e3183 100644
--- a/src/tags/id3_tag.c
+++ b/src/tags/id3_tag.c
@@ -1535,9 +1535,11 @@ gboolean Id3tag_Check_If_Id3lib_Is_Bugged (void)
/* Same string found? if yes => not buggy. */
if (result && strcmp (result, test_str) != 0)
{
+ g_free (result);
return TRUE;
}
+ g_free (result);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]