]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-seq-range-array - clean up array after use
authorPhil Carmody <phil@dovecot.fi>
Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)
committerPhil Carmody <phil@dovecot.fi>
Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)
Removes noise when memory-leak debugging during unit tests.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/test-seq-range-array.c

index 01b1daf673b95d388a1ac81a63cf20e98568db4b..b96f6525f2ed07c9e60aaac1d585d486f34b5f75 100644 (file)
@@ -151,6 +151,7 @@ fail:
                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)