mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
lib/config: fix memory leak
This commit fixes a small memory leak (per iterator restart) by actually using the talloc context intended to be blown away on restart.
This commit is contained in:
parent
636e03a9ca
commit
35d559eb18
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ notmuch_config_values_valid (notmuch_config_values_t *values)
|
|||
const char *
|
||||
notmuch_config_values_get (notmuch_config_values_t *values)
|
||||
{
|
||||
return talloc_strndup (values, values->iterator, values->tok_len);
|
||||
return talloc_strndup (values->children, values->iterator, values->tok_len);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue