[PATCH v3 1/5] config: Fix free in 'config get' implementation.
Peter Wang
novalazy at gmail.com
Thu Apr 5 18:48:02 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