]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-compression: Fixed fd leak in unit test
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 27 Oct 2016 10:20:03 +0000 (13:20 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 27 Oct 2016 10:20:03 +0000 (13:20 +0300)
src/lib-compression/test-compression.c

index 0252d4f4d09910f5b11192de11e16f6e294242bb..62cff920859b85f87bbc3237561bc3f4b8b5bfc9 100644 (file)
@@ -81,6 +81,7 @@ static void test_compression_handler(const struct compression_handler *handler)
 
        test_assert(memcmp(input_sha1, output_sha1, sizeof(input_sha1)) == 0);
        i_unlink(path);
+       i_close_fd(&fd);
 
        test_end();
 }