]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Memory leak fix for test-mail-index-map
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 28 Jan 2016 18:23:51 +0000 (20:23 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 28 Jan 2016 18:23:51 +0000 (20:23 +0200)
This failed when running make check with valgrind.

src/lib-index/test-mail-index-map.c

index 087d9345db6f4e44b7f37c70dd72d24e0dc58c48..3430c591653ef776fc68e3b8c1c82ec95fd38c59 100644 (file)
@@ -34,7 +34,7 @@ static void test_mail_index_map_lookup_seq_range_count(unsigned int messages_cou
                        test_assert((first_uid+1)/2 == first_seq && last_uid/2 == last_seq);
                }
        }
-
+       i_free(rec_map.records);
 }
 
 static void test_mail_index_map_lookup_seq_range(void)