[glib] Plug a mem leak



commit 76ebe6c069b7fb1d09e6b95172185b325a3bb28e
Author: Christian Persch <chpe gnome org>
Date:   Sat May 24 20:51:07 2008 +0200

    Plug a mem leak
    
    Bug #583196.
---
 glib/tests/keyfile.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index ba8cd1e..dfc7d25 100644
--- a/glib/tests/keyfile.c
+++ b/glib/tests/keyfile.c
@@ -1090,6 +1090,7 @@ test_key_names (void)
   g_key_file_set_string (keyfile, "a", "key\tfoo", "123");
   value = g_key_file_get_string (keyfile, "a", "key\tfoo", &error);
   check_no_error (&error);
+  g_free (value);
   g_key_file_free (keyfile);  
 
   keyfile = g_key_file_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]