[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Wed Mar 26 16:52:23 EET 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv4836/lib-storage/index

Modified Files:
	index-mail.c 
Log Message:
fix extra memory usage



Index: index-mail.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- index-mail.c	11 Feb 2003 12:31:35 -0000	1.4
+++ index-mail.c	26 Mar 2003 14:52:20 -0000	1.5
@@ -201,6 +201,7 @@
 	struct cached_header *hdr;
 
 	if (data->save_envelope) {
+
 		imap_envelope_parse_header(mail->pool, &data->envelope_data,
 					   name, name_len, value, value_len);
 
@@ -208,9 +209,11 @@
 			/* finalize the envelope */
 			string_t *str;
 
+			t_push();
 			str = str_new(mail->pool, 256);
 			imap_envelope_write_part_data(data->envelope_data, str);
-                        data->envelope = str_c(str);
+			data->envelope = str_c(str);
+			t_pop();
 		}
 	}
 




More information about the dovecot-cvs mailing list