dovecot-2.2: lib: test-seq-range-array - clean up array after use

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 11:11:46 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/c749a40eda0a
changeset: 17780:c749a40eda0a
user:      Phil Carmody <phil at dovecot.fi>
date:      Wed Sep 10 14:08:58 2014 +0300
description:
lib: test-seq-range-array - clean up array after use
Removes noise when memory-leak debugging during unit tests.

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/lib/test-seq-range-array.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r e1eaf5d06769 -r c749a40eda0a src/lib/test-seq-range-array.c
--- a/src/lib/test-seq-range-array.c	Wed Sep 10 14:08:58 2014 +0300
+++ b/src/lib/test-seq-range-array.c	Wed Sep 10 14:08:58 2014 +0300
@@ -151,6 +151,7 @@
 		test_out_reason("seq_range_array random", FALSE,
 			t_strdup_printf("round %u test %d failed", i, test));
 	}
+	array_free(&range);
 }
 
 static void test_seq_range_array_invert(void)


More information about the dovecot-cvs mailing list