X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=io_uring_engine.cpp;h=be9366037ae0dbd9e3ad2f34f7c9995513f1d20a;hb=7f39444852308224240ebfb75e0bf8f39403afa0;hp=eab5e8d068bdccd99db8e1f5179a31d0dd02969b;hpb=cb87fdb5ede1d5a9fa0a5a309d9ccf98f42fe0b7;p=plocate diff --git a/io_uring_engine.cpp b/io_uring_engine.cpp index eab5e8d..be93660 100644 --- a/io_uring_engine.cpp +++ b/io_uring_engine.cpp @@ -41,12 +41,12 @@ IOUringEngine::IOUringEngine(size_t slop_bytes) if (!supports_stat) { dprintf("io_uring on this kernel does not support statx(); will do synchronous access checking.\n"); } - free(probe); + io_uring_free_probe(probe); } #endif } -void IOUringEngine::submit_stat(const char *path, std::function cb) +void IOUringEngine::submit_stat(const char *path [[maybe_unused]], std::function cb [[maybe_unused]]) { assert(supports_stat);