(main): Removed unneded goto. Added call to sieve_machine_destroy at the end.
Showing
1 changed file
with
1 additions
and
4 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment