changeset 737:eae61c3f4f3c HEAD

Added a few t_push/t_pops to prevent unnecessary memory usage.
author Timo Sirainen <tss@iki.fi>
date Sun, 01 Dec 2002 20:17:53 +0200
parents edd896dda3bd
children 1b0205fc4153
files src/lib-mail/message-header-search.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-mail/message-header-search.c	Sun Dec 01 20:16:35 2002 +0200
+++ b/src/lib-mail/message-header-search.c	Sun Dec 01 20:17:53 2002 +0200
@@ -194,10 +194,13 @@
 		    !ctx->submatch) {
 			/* encoded string. read it. */
 			p += 2;
+			t_push();
 			if (match_encoded(&p, end, ctx)) {
+				t_pop();
 				found = TRUE;
 				break;
 			}
+			t_pop();
 
 			i_assert(p != end);
 			continue;
@@ -212,8 +215,10 @@
 		else {
 			/* we have non-ascii in header. treat the rest of the
 			   header as encoded with the key's charset */
+			t_push();
 			found = match_data(p, (size_t) (end-p),
 					   ctx->key_charset, ctx);
+			t_pop();
 			break;
 		}