changeset 4260:327abd67380d HEAD

Strings should be freed with str_free(), not p_free().
author Timo Sirainen <tss@iki.fi>
date Mon, 08 May 2006 14:25:14 +0300
parents fd315deac28f
children 8fd5dfa271ef
files src/lib-storage/index/index-mail.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c	Mon May 08 11:46:19 2006 +0300
+++ b/src/lib-storage/index/index-mail.c	Mon May 08 14:25:14 2006 +0300
@@ -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);