[easytag/easytag-2-2] Fix memory leak in id3lib buggy check



commit 7ab8317800d8fbe597bef480389c0f2811ec3554
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/id3_tag.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/id3_tag.c b/src/id3_tag.c
index 44536ca..5134228 100644
--- a/src/id3_tag.c
+++ b/src/id3_tag.c
@@ -1435,9 +1435,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]