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: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=926c71e6b92a6aa993330e06c27eb9d9d67c6f82;hp=ea4cb3cbdc8b3c6e450b971f52e880223e943ba0 * 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; }