From 443faa3fcc4d57434d4ad484cf7fe7c4a35b4bc1 Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Sat, 14 Apr 2012 11:41:01 +1000 Subject: [PATCH] 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(). --- notmuch-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0