Commit 9b12712c 9b12712c43833fe8678e78f0fad9299e61048530 by Sergey Poznyakoff

(main): Removed unneded goto. Added call to sieve_machine_destroy at the end.

1 parent 7ba0b591
...@@ -447,10 +447,6 @@ main (int argc, char *argv[]) ...@@ -447,10 +447,6 @@ main (int argc, char *argv[])
447 447
448 /* Process the mailbox */ 448 /* Process the mailbox */
449 rc = sieve_mailbox (mach, mbox); 449 rc = sieve_mailbox (mach, mbox);
450 if (rc)
451 {
452 goto cleanup;
453 }
454 450
455 cleanup: 451 cleanup:
456 if (mbox && !(opts.sieve_debug & MU_SIEVE_DRY_RUN)) 452 if (mbox && !(opts.sieve_debug & MU_SIEVE_DRY_RUN))
...@@ -469,6 +465,7 @@ cleanup: ...@@ -469,6 +465,7 @@ cleanup:
469 rc = e; 465 rc = e;
470 } 466 }
471 467
468 sieve_machine_destroy (&mach);
472 mailbox_close (mbox); 469 mailbox_close (mbox);
473 mailbox_destroy (&mbox); 470 mailbox_destroy (&mbox);
474 mu_debug_destroy (&debug, mach); 471 mu_debug_destroy (&debug, mach);
......