projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5073de3
)
config: Fix free in 'config get' implementation.
author
Peter Wang
<novalazy@gmail.com>
Sat, 14 Apr 2012 01:41:01 +0000
(11:41 +1000)
committer
David 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
patch
|
blob
|
history
diff --git
a/notmuch-config.c
b/notmuch-config.c
index e9b275096acb999103db4b5a68a74f27f0a5dcf1..85fc7745bb81bb5b5d6b1c41c0bd7fb99ac49e91 100644
(file)
--- 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);