Fix Coverity #1220444
authorColin Leroy <colin@colino.net>
Tue, 2 Oct 2018 14:16:57 +0000 (16:16 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 4 Oct 2018 17:33:17 +0000 (19:33 +0200)
src/plugins/mailmbox/mailimf.c

index d664050bb255f40a466e5b91ce905b32d1e1140d..fd44122f0cd9a34939d19bb797f5ca663feae3be 100644 (file)
@@ -4455,7 +4455,7 @@ static int mailimf_field_parse(const char * message, size_t length,
         &optional_field);
     if (r != MAILIMF_NO_ERROR) {
       res = r;
-      goto err;
+      goto free_fields;
     }
 
     type = MAILIMF_FIELD_OPTIONAL_FIELD;