From: Richard Russon Date: Fri, 14 Jul 2017 12:43:23 +0000 (+0100) Subject: coverity: fix two minor defects X-Git-Tag: neomutt-20170714~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=237aa390fdce4b2d376f37205e66a37f614c9364;p=neomutt coverity: fix two minor defects --- diff --git a/buffy.c b/buffy.c index 346bb9995..30f9638e0 100644 --- a/buffy.c +++ b/buffy.c @@ -542,7 +542,10 @@ int mutt_parse_mailboxes(struct Buffer *path, struct Buffer *s, /* Skip empty tokens. */ if (!*buf) + { + FREE(&desc); continue; + } /* avoid duplicates */ p = realpath(buf, f1); @@ -556,7 +559,10 @@ int mutt_parse_mailboxes(struct Buffer *path, struct Buffer *s, } if (*b) + { + FREE(&desc); continue; + } *b = buffy_new(buf); diff --git a/imap/command.c b/imap/command.c index c4c9cc34e..d0e562b79 100644 --- a/imap/command.c +++ b/imap/command.c @@ -318,7 +318,6 @@ static void cmd_parse_capability(struct ImapData *idata, char *s) mutt_bit_set(idata->capabilities, CapabilityAliases[x].value); mutt_debug(4, " Found capability \"%s\": %d\n", CapabilityAliases[x].name, CapabilityAliases[x].value); - found = true; break; } }