Commit 46036003 46036003a55a8bc660b2955557a1d718e34d3a9b by Sergey Poznyakoff

Destroy the mailbox if the attempt to open it has failed.

1 parent f23e20ff
......@@ -457,6 +457,7 @@ main (int argc, char *argv[])
{
mu_error (_("open on %s failed: %s"),
opts.mbox ? opts.mbox : _("default"), mu_strerror (rc));
mailbox_destroy (&mbox);
goto cleanup;
}
......