diff options
| author | David Bremner <david@tethera.net> | 2021-06-18 21:59:44 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-06-25 09:13:04 -0300 |
| commit | 35d559eb18d779822074a0781585642028e61ed8 (patch) | |
| tree | 3d88528841f2158519aef328400e68f85d8cb129 /lib/config.cc | |
| parent | 636e03a9caec25b1aae5df44ed3feea6d607a5d2 (diff) | |
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.
Diffstat (limited to 'lib/config.cc')
| -rw-r--r-- | lib/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.cc b/lib/config.cc index 0ec66372..368ed669 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -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 |
