From: Peter Wang Date: Sat, 14 Apr 2012 01:41:01 +0000 (+1000) Subject: config: Fix free in 'config get' implementation. X-Git-Tag: 0.13_rc1~71 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=443faa3fcc4d57434d4ad484cf7fe7c4a35b4bc1 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(). --- 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);