dovecot-2.2: lib-fts: Fixed memory leaks in test-fts-filter unit...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 10:55:26 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/713476fa84af
changeset: 18727:713476fa84af
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 18 06:53:20 2015 -0400
description:
lib-fts: Fixed memory leaks in test-fts-filter unit test

diffstat:

 src/lib-fts/test-fts-filter.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r d097a9779c37 -r 713476fa84af src/lib-fts/test-fts-filter.c
--- a/src/lib-fts/test-fts-filter.c	Mon May 18 06:51:24 2015 -0400
+++ b/src/lib-fts/test-fts-filter.c	Mon May 18 06:53:20 2015 -0400
@@ -200,6 +200,7 @@
 	test_assert(fts_filter_create(fts_filter_stopwords, NULL, &unknown, stopword_settings, &filter, &error) == 0);
 	test_assert(filter != NULL && error == NULL);
 	test_assert(fts_filter_filter(filter, &token, &error) < 0 && error != NULL);
+	fts_filter_unref(&filter);
 	test_end();
 
 }
@@ -508,6 +509,7 @@
 	test_assert(fts_filter_create(fts_filter_normalizer_icu, NULL, NULL, settings, &norm, &error) == 0);
 	test_assert(error == NULL);
 	test_assert(fts_filter_filter(norm, &token, &error) < 0 && error != NULL);
+	fts_filter_unref(&norm);
 	test_end();
 }
 


More information about the dovecot-cvs mailing list