FREE(&b->content);
FREE(&b->xtype);
FREE(&b->subtype);
+ FREE(&b->language);
FREE(&b->description);
FREE(&b->form_name);
mutt_addr_free(&(*p)->sender);
mutt_addr_free(&(*p)->reply_to);
mutt_addr_free(&(*p)->mail_followup_to);
+ mutt_addr_free(&(*p)->x_original_to);
FREE(&(*p)->list_post);
FREE(&(*p)->subject);
if (h->regex.regex)
{
regfree(h->regex.regex);
+ FREE(&h->regex.regex);
}
mutt_pattern_free(&h->pattern);
FREE(&h);
m->hdrs[idx]->replied = h.data->replied;
m->hdrs[idx]->received = h.received;
m->hdrs[idx]->edata = (void *) (h.data);
+ m->hdrs[idx]->free_edata = imap_edata_free;
STAILQ_INIT(&m->hdrs[idx]->tags);
driver_tags_replace(&m->hdrs[idx]->tags, mutt_str_strdup(h.data->flags_remote));
FREE(&adata->buf);
mutt_bcache_close(&adata->bcache);
FREE(&adata->cmds);
+
+ if (adata->conn)
+ {
+ if (adata->conn->conn_close)
+ adata->conn->conn_close(adata->conn);
+ FREE(&adata->conn);
+ }
+
FREE(ptr);
}
if (!adata)
{
mutt_str_strfcpy(buf, path, buflen);
+ FREE(&mx.mbox);
return;
}
#endif
}
if (Hostname)
- cs_str_initial_set(Config, "hostname", mutt_str_strdup(Hostname), NULL);
+ cs_str_initial_set(Config, "hostname", Hostname, NULL);
return true;
}
if ((LogQueueMax > 0) && (LogQueueCount >= LogQueueMax))
{
+ ll = STAILQ_FIRST(&LogQueue);
STAILQ_REMOVE_HEAD(&LogQueue, entries);
+ FREE(&ll->message);
+ FREE(&ll);
}
else
{
mutt_exit(1);
}
+ m->hdrmax += 25;
if (m->hdrs)
{
- mutt_mem_realloc(&m->hdrs, sizeof(struct Email *) * (m->hdrmax += 25));
+ mutt_mem_realloc(&m->hdrs, sizeof(struct Email *) * m->hdrmax);
mutt_mem_realloc(&m->v2r, sizeof(int) * m->hdrmax);
}
else
{
- m->hdrs = mutt_mem_calloc((m->hdrmax += 25), sizeof(struct Email *));
+ m->hdrs = mutt_mem_calloc(m->hdrmax, sizeof(struct Email *));
m->v2r = mutt_mem_calloc(m->hdrmax, sizeof(int));
}
for (int i = m->msg_count; i < m->hdrmax; i++)
mutt_account_tourl(acct, &url);
url.path = mutt_str_strdup(src);
url_tostring(&url, file, sizeof(file), U_PATH);
+ FREE(&url.path);
}
else
mutt_str_strfcpy(file, src ? src : "", sizeof(file));
rc = cs_str_initial_set(cs, name, "42", &err);
if (TEST_CHECK(CSR_RESULT(rc) != CSR_SUCCESS))
{
- TEST_MSG("%s\n", err.data);
+ TEST_MSG("Expected error\n");
+ }
+ else
+ {
+ TEST_MSG("This test should have failed\n");
return;
}
mutt_buffer_reset(&err);
rc = cs_str_initial_get(cs, name, &err);
- if (TEST_CHECK(CSR_RESULT(rc) != CSR_SUCCESS))
+ if (TEST_CHECK(CSR_RESULT(rc) == CSR_SUCCESS))
{
- TEST_MSG("Expected error\n");
+ TEST_MSG("Initial %s\n", err.data);
}
else
{
- TEST_MSG("This test should have failed\n");
+ TEST_MSG("%s\n", err.data);
return;
}