[notmuch] [PATCH 1/2] * notmuch-config: fix small leak from 'g_key_file_to_data'

Dirk-Jan C. Binnema djcb.bulk at gmail.com
Tue Dec 1 23:11:24 PST 2009


Signed-off-by: Dirk-Jan C. Binnema <djcb.bulk at gmail.com>
---
 notmuch-config.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/notmuch-config.c b/notmuch-config.c
index fc65d6b..95430db 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -317,9 +317,11 @@ notmuch_config_save (notmuch_config_t *config)
 	fprintf (stderr, "Error saving configuration to %s: %s\n",
 		 config->filename, error->message);
 	g_error_free (error);
+	g_free (data);
 	return 1;
     }
 
+    g_free (data);
     return 0;
 }
 
-- 
1.6.3.3



More information about the notmuch mailing list