diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ring-leak.c | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/test/ring-leak.c b/test/ring-leak.c index 71fe568..d2fcba0 100644 --- a/test/ring-leak.c +++ b/test/ring-leak.c @@ -25,11 +25,7 @@  static int io_uring_register_files(int ring_fd, int fd1, int fd2)  { -	__s32 *fds; - -	fds = calloc(2, sizeof(__s32)); -	fds[0] = fd1; -	fds[1] = fd2; +	__s32 fds[2] = { fd1, fd2 };  	return io_uring_register(ring_fd, IORING_REGISTER_FILES, fds, 2);  } | 
