[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.19, 1.20 mail-index-transaction.c, 1.25, 1.26

cras at dovecot.org cras at dovecot.org
Mon Sep 20 02:46:35 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv6203/lib-index

Modified Files:
	mail-cache-compress.c mail-index-transaction.c 
Log Message:
Memory leak fixes



Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- mail-cache-compress.c	12 Sep 2004 16:32:05 -0000	1.19
+++ mail-cache-compress.c	19 Sep 2004 23:46:33 -0000	1.20
@@ -188,6 +188,7 @@
 
 	hdr.used_file_size = output->offset;
 	buffer_free(ctx.buffer);
+	buffer_free(ctx.field_seen);
 
 	o_stream_seek(output, 0);
 	o_stream_send(output, &hdr, sizeof(hdr));

Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- mail-index-transaction.c	12 Sep 2004 10:34:57 -0000	1.25
+++ mail-index-transaction.c	19 Sep 2004 23:46:33 -0000	1.26
@@ -46,6 +46,7 @@
 			if (recs[i] != NULL)
 				buffer_free(recs[i]);
 		}
+		buffer_free(t->extra_rec_updates);
 	}
 
 	if (t->appends != NULL)



More information about the dovecot-cvs mailing list