diff options
| author | David Bremner <david@tethera.net> | 2016-06-09 23:35:27 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-06-10 09:20:22 -0300 |
| commit | 4291f326809692bad61b50f942dc366e59ab30ef (patch) | |
| tree | 1fb29b52bd344228351854d7b4141238d8a15994 /lib/database.cc | |
| parent | d080b4100aedbb93a4a4b43f6d07fa2daba101d3 (diff) | |
lib: fix memory leak of field processor objects
The field processor objects need to be deallocated explicitly just like
the range processors (or a talloc destructor defined).
Diffstat (limited to 'lib/database.cc')
| -rw-r--r-- | lib/database.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/database.cc b/lib/database.cc index 2b2d8219..afafe88c 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -1107,6 +1107,13 @@ notmuch_database_close (notmuch_database_t *notmuch) delete notmuch->last_mod_range_processor; notmuch->last_mod_range_processor = NULL; +#if HAVE_XAPIAN_FIELD_PROCESSOR + delete notmuch->date_field_processor; + notmuch->date_field_processor = NULL; + delete notmuch->query_field_processor; + notmuch->query_field_processor = NULL; +#endif + return status; } |
