diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-11-09 19:14:48 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-11-09 19:25:43 +0300 |
commit | 9ade466e8683a2e3b45dacf45f74fcf4a3c40cee (patch) | |
tree | 5386d43454d677cb1239ed7a889dfcf101e99136 /contrib/libs/liburing/test/read-mshot-empty.c | |
parent | 1f59ab019232ff97a73c7c13736b254925fa8b0b (diff) | |
download | ydb-9ade466e8683a2e3b45dacf45f74fcf4a3c40cee.tar.gz |
Update contrib/libs/liburing to 2.8
commit_hash:761e2e80642a3d32073f0261b3f5b1992e54a74f
Diffstat (limited to 'contrib/libs/liburing/test/read-mshot-empty.c')
-rw-r--r-- | contrib/libs/liburing/test/read-mshot-empty.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/libs/liburing/test/read-mshot-empty.c b/contrib/libs/liburing/test/read-mshot-empty.c index 2fc5a63184..66ed02d973 100644 --- a/contrib/libs/liburing/test/read-mshot-empty.c +++ b/contrib/libs/liburing/test/read-mshot-empty.c @@ -117,8 +117,10 @@ int main(int argc, char *argv[]) */ ret = io_uring_peek_cqe(&ring, &cqe); if (!ret) { - if (cqe->res == -EINVAL || cqe->res == -EBADF) + if (cqe->res == -EINVAL || cqe->res == -EBADF) { + free(buf); return T_EXIT_SKIP; + } } pthread_create(&thread, NULL, thread_fn, fds); @@ -150,5 +152,8 @@ int main(int argc, char *argv[]) } pthread_join(thread, &tret); + io_uring_free_buf_ring(&ring, br, NR_BUFS, BGID); + io_uring_queue_exit(&ring); + free(buf); return T_EXIT_PASS; } |