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().
This commit is contained in:
Peter Wang 2012-04-14 11:41:01 +10:00 committed by David Bremner
parent 5073de34b4
commit 443faa3fcc

View file

@ -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);