diff --git a/testing/hstox/driver.c b/testing/hstox/driver.c index add43901..442967bf 100644 --- a/testing/hstox/driver.c +++ b/testing/hstox/driver.c @@ -89,6 +89,7 @@ static int write_sample_input(msgpack_object req) msgpack_pack_object(&pk, req); check_return(E_WRITE, write(fd, sbuf.data, sbuf.size)); + check_return(E_WRITE, close(fd)); return E_OK; }