X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdatabase.cc;h=94022d7ce3ae9c060ecf18baaca1aa95afa11781;hp=a6d15a13208a5535cb11e3da8275f73cc20284a8;hb=6c0adab23eadb81bb1254f4b82175902df11bb3f;hpb=a8ee1c75c348f41d88398fc394812e66e8e8b72e diff --git a/lib/database.cc b/lib/database.cc index a6d15a13..94022d7c 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -703,6 +703,7 @@ notmuch_database_open (const char *path, } catch (const Xapian::Error &error) { fprintf (stderr, "A Xapian exception occurred opening database: %s\n", error.get_msg().c_str()); + notmuch_database_close (notmuch); notmuch = NULL; }