aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-config.c
diff options
context:
space:
mode:
authorGravatar Dirk-Jan C. Binnema <djcb.bulk@gmail.com>2009-12-02 09:11:24 +0200
committerGravatar Carl Worth <cworth@cworth.org>2009-12-04 11:16:26 -0800
commit926c71e6b92a6aa993330e06c27eb9d9d67c6f82 (patch)
treeb0ae8c9643a9cd0327f360b184444ab8c60dd186 /notmuch-config.c
parentea4cb3cbdc8b3c6e450b971f52e880223e943ba0 (diff)
* notmuch-config: fix small leak from 'g_key_file_to_data'
Signed-off-by: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
Diffstat (limited to 'notmuch-config.c')
-rw-r--r--notmuch-config.c2
1 files changed, 2 insertions, 0 deletions
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;
}