From 51245fec9e2e20e3f1b260402e9d91c3f2330cfd Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Thu, 16 Feb 2017 12:29:08 +0000 Subject: [PATCH] fix: resource leak - CID 76982 --- mbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mbox.c b/mbox.c index 97c3d19b0..c9dce9be2 100644 --- a/mbox.c +++ b/mbox.c @@ -1043,6 +1043,7 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint) mutt_debug (1, "mbox_sync_mailbox: unable to reopen temp copy of mailbox!\n"); mutt_perror (tempfile); mutt_sleep (5); + FREE (&newOffset); return (-1); } @@ -1106,6 +1107,7 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint) mutt_pretty_mailbox (savefile, sizeof (savefile)); mutt_error (_("Write failed! Saved partial mailbox to %s"), savefile); mutt_sleep (5); + FREE (&newOffset); return (-1); } @@ -1119,6 +1121,7 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint) mutt_unblock_signals (); mx_fastclose_mailbox (ctx); mutt_error (_("Fatal error! Could not reopen mailbox!")); + FREE (&newOffset); return (-1); } -- 2.40.0