Fix Coverity #1220444
authorColin Leroy <colin@colino.net>
Tue, 2 Oct 2018 14:16:57 +0000 (16:16 +0200)
committerColin Leroy <colin@colino.net>
Tue, 2 Oct 2018 14:16:57 +0000 (16:16 +0200)
src/plugins/mailmbox/mailimf.c

index d664050..fd44122 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;