X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdatabase.cc;h=eadf8a763395187afccd18cefad47e1cca8d2650;hp=7a8702e263c46985bb21818d3f8dd039e39799d6;hb=35ca5feb28a6e52851ba61ea63478ade40991558;hpb=a95dbba1562a4685c73f86fb30380e6663cae894 diff --git a/lib/database.cc b/lib/database.cc index 7a8702e2..eadf8a76 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -941,10 +941,12 @@ notmuch_database_compact (const char* path, goto DONE; } - notmuch_database_close(notmuch); - DONE: + if (notmuch) + notmuch_database_destroy (notmuch); + talloc_free(local); + return ret; } #else