X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=3ff630478c613848f342ddbdb42fa625484254d0;hp=473201e961cdb61fe51c1807a18b4161d3615f48;hb=6f7469f54744656f90ce215f365d5731e16acd3c;hpb=2b3e9ff467d99fe02852cfcc46181c4d29dea99b 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");