Another wrong free
authorColin Leroy <colin@colino.net>
Thu, 5 Jun 2014 14:43:36 +0000 (16:43 +0200)
committerColin Leroy <colin@colino.net>
Thu, 5 Jun 2014 14:43:36 +0000 (16:43 +0200)
src/plugins/mailmbox/mailimf_types_helper.c

index fa09d255656044b300439212f23a5475f1bc3fac..85e936c2cc64e3eaba2e7e6d76619155e73002ec 100644 (file)
@@ -278,7 +278,7 @@ static void detach_free_common_fields(struct mailimf_orig_date * imf_date,
   }
   if (imf_cc != NULL) {
     imf_cc->cc_addr_list = NULL;
-    mailimf_to_free(imf_to);
+    mailimf_to_free(imf_cc);
   }
   if (imf_bcc != NULL) {
     imf_bcc->bcc_addr_list = NULL;