[PATCH v4 1/6] config: Fix free in 'config get' implementation.
Peter Wang
novalazy at gmail.com
Fri Apr 13 18:41:01 PDT 2012
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
More information about the notmuch
mailing list