From: Richard Russon Date: Thu, 16 Feb 2017 12:29:29 +0000 (+0000) Subject: fix: resource leak - CID 76983 X-Git-Tag: neomutt-20170225~14^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52f01294e4b35e22700a853a4cd6285bed7ed246;p=neomutt fix: resource leak - CID 76983 --- diff --git a/mbox.c b/mbox.c index c9dce9be2..f5919a862 100644 --- a/mbox.c +++ b/mbox.c @@ -1044,6 +1044,7 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint) mutt_perror (tempfile); mutt_sleep (5); FREE (&newOffset); + FREE (&oldOffset); return (-1); } @@ -1108,6 +1109,7 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint) mutt_error (_("Write failed! Saved partial mailbox to %s"), savefile); mutt_sleep (5); FREE (&newOffset); + FREE (&oldOffset); return (-1); } @@ -1122,6 +1124,7 @@ static int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint) mx_fastclose_mailbox (ctx); mutt_error (_("Fatal error! Could not reopen mailbox!")); FREE (&newOffset); + FREE (&oldOffset); return (-1); }