[PATCH v4 1/6] config: Fix free in 'config get' implementation.
Peter Wang writes: > The array returned by g_key_file_get_string_list() should be freed with > g_strfreev(), not free(). Pushed this one patch from the series. d
Re: [PATCH v4 1/6] config: Fix free in 'config get' implementation.
Peter Wang noval...@gmail.com writes: The array returned by g_key_file_get_string_list() should be freed with g_strfreev(), not free(). Pushed this one patch from the series. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH v4 1/6] 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e9b2750..85fc774 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); -- 1.7.4.4