]> git.notmuchmail.org Git - notmuch/commitdiff
config: Fix free in 'config get' implementation.
authorPeter Wang <novalazy@gmail.com>
Sat, 14 Apr 2012 01:41:01 +0000 (11:41 +1000)
committerDavid Bremner <bremner@debian.org>
Wed, 25 Apr 2012 02:25:51 +0000 (23:25 -0300)
The array returned by g_key_file_get_string_list() should be freed with
g_strfreev(), not free().

notmuch-config.c

index e9b275096acb999103db4b5a68a74f27f0a5dcf1..85fc7745bb81bb5b5d6b1c41c0bd7fb99ac49e91 100644 (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);