From: Dirk-Jan C. Binnema Date: Wed, 2 Dec 2009 07:11:24 +0000 (+0200) Subject: * notmuch-config: fix small leak from 'g_key_file_to_data' X-Git-Tag: 0.1~229 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=926c71e6b92a6aa993330e06c27eb9d9d67c6f82;p=notmuch.git * notmuch-config: fix small leak from 'g_key_file_to_data' Signed-off-by: Dirk-Jan C. Binnema --- diff --git a/notmuch-config.c b/notmuch-config.c index fc65d6b0..95430db1 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; }