Following up on this, ASAN reports a memory leak on a failure. Using
'notmuch_database_close()' or 'notmuch_database_destroy()' results in a
SEGFAULT.
I've updated my reproducer program to free the database on non-failure
cases so it's easier to see the memory leak.
#include
#include
int
Submitting this bug report per bremner's request (thanks for the assist
today!)
The documentation for 'notmuch_database_open_with_config()' states:
> In case of any failure, this function returns an error status and
> sets *database to NULL.
However, it's possible to trigger a failure and leave