diff options
author | 2012-04-14 11:41:01 +1000 | |
---|---|---|
committer | 2012-04-24 23:25:51 -0300 | |
commit | 443faa3fcc4d57434d4ad484cf7fe7c4a35b4bc1 (patch) | |
tree | f2b7c406f8abcf4b53232db5fa337299f6abde29 | |
parent | 5073de34b453f5f7f18a54791141b38783089485 (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().
-rw-r--r-- | notmuch-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-config.c b/notmuch-config.c index e9b27509..85fc7745 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); |