* notmuch-config: fix small leak from 'g_key_file_to_data'
authorDirk-Jan C. Binnema <djcb.bulk@gmail.com>
Wed, 2 Dec 2009 07:11:24 +0000 (09:11 +0200)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Dec 2009 19:16:26 +0000 (11:16 -0800)
Signed-off-by: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
notmuch-config.c

index fc65d6b00cb1112ea59718798a3cdd2dc31be5d9..95430db104fce8583ac089f9a3e83f52c08901b0 100644 (file)
@@ -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;
 }