]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
test: lib-program-client: Use i_close_fd instead of close
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 17 Mar 2017 08:23:42 +0000 (10:23 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 30 Mar 2017 17:26:17 +0000 (20:26 +0300)
src/lib-program-client/test-program-client-unix.c

index 9e56d6103b2789b28b13efb59194601e2681f47f..019e39228e0623dbb8062893cb3570b7baa24ecc 100644 (file)
@@ -76,7 +76,7 @@ void test_program_client_destroy(struct test_client **_client)
                o_stream_unref(&client->os_body);
        if (client->body != NULL)
                i_stream_unref(&client->body);
-       close(client->fd);
+       i_close_fd(&client->fd);
        pool_unref(&client->pool);
        test_globals.client = NULL;
 }