[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c,1.94,1.95
cras at dovecot.org
cras at dovecot.org
Mon May 8 14:25:17 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv18449
Modified Files:
index-mail.c
Log Message:
Strings should be freed with str_free(), not p_free().
Index: index-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- index-mail.c 8 May 2006 08:46:22 -0000 1.94
+++ index-mail.c 8 May 2006 11:25:14 -0000 1.95
@@ -81,7 +81,7 @@
if (mail_cache_lookup_field(mail->trans->cache_view, str,
mail->data.seq,
mail->ibox->cache_fields[field].idx) <= 0) {
- p_free(mail->data_pool, str);
+ str_free(&str);
return NULL;
}
@@ -655,7 +655,7 @@
mail->mail.mail.uid);
data->bodystructure = NULL;
}
- p_free(mail->data_pool, str);
+ str_free(&str);
index_mail_parse_bodystructure(mail, MAIL_CACHE_IMAP_BODY);
return data->body;
@@ -681,7 +681,7 @@
data->bodystructure = str_c(str);
return data->bodystructure;
}
- p_free(mail->data_pool, str);
+ str_free(&str);
index_mail_parse_bodystructure(mail,
MAIL_CACHE_IMAP_BODYSTRUCTURE);
More information about the dovecot-cvs
mailing list