[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c, 1.93,
1.93.2.1
cras at dovecot.org
cras at dovecot.org
Mon May 8 14:27:32 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv22109
Modified Files:
Tag: branch_1_0
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.93
retrieving revision 1.93.2.1
diff -u -d -r1.93 -r1.93.2.1
--- index-mail.c 26 Feb 2006 11:24:38 -0000 1.93
+++ index-mail.c 8 May 2006 11:27:30 -0000 1.93.2.1
@@ -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