mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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).
This commit is contained in:
parent
d080b4100a
commit
4291f32680
1 changed files with 7 additions and 0 deletions
|
@ -1107,6 +1107,13 @@ notmuch_database_close (notmuch_database_t *notmuch)
|
||||||
delete notmuch->last_mod_range_processor;
|
delete notmuch->last_mod_range_processor;
|
||||||
notmuch->last_mod_range_processor = NULL;
|
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;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue