aboutsummaryrefslogtreecommitdiff
path: root/notmuch-config.c
diff options
context:
space:
mode:
authorPeter Wang <novalazy@gmail.com>2012-04-14 11:41:01 +1000
committerDavid Bremner <bremner@debian.org>2012-04-24 23:25:51 -0300
commit443faa3fcc4d57434d4ad484cf7fe7c4a35b4bc1 (patch)
treef2b7c406f8abcf4b53232db5fa337299f6abde29 /notmuch-config.c
parent5073de34b453f5f7f18a54791141b38783089485 (diff)
config: Fix free in 'config get' implementation.
The array returned by g_key_file_get_string_list() should be freed with g_strfreev(), not free().
Diffstat (limited to 'notmuch-config.c')
-rw-r--r--notmuch-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-config.c b/notmuch-config.c
index e9b2750..85fc774 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -751,7 +751,7 @@ notmuch_config_command_get (void *ctx, char *item)
for (i = 0; i < length; i++)
printf ("%s\n", value[i]);
- free (value);
+ g_strfreev (value);
}
notmuch_config_close (config);