X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-new.c;h=3ff630478c613848f342ddbdb42fa625484254d0;hb=86f01063d74cb45ed83df80c9406262ae533d178;hp=473201e961cdb61fe51c1807a18b4161d3615f48;hpb=2e7b6494046342872f1f79418679b1554d6d1005;p=notmuch diff --git a/notmuch-new.c b/notmuch-new.c index 473201e9..3ff63047 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -1041,7 +1041,7 @@ notmuch_new_command (void *ctx, int argc, char *argv[]) fprintf (stderr, "Note: A fatal error was encountered: %s\n", notmuch_status_to_string (ret)); - notmuch_database_close (notmuch); + notmuch_database_destroy (notmuch); if (run_hooks && !ret && !interrupted) ret = notmuch_run_hook (db_path, "post-new");