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:
David Bremner 2021-06-18 21:59:44 -03:00
parent 636e03a9ca
commit 35d559eb18

View file

@ -318,7 +318,7 @@ notmuch_config_values_valid (notmuch_config_values_t *values)
const char * const char *
notmuch_config_values_get (notmuch_config_values_t *values) 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 void