From c13e868d3e876c116e2937062048c10765ee39d3 Mon Sep 17 00:00:00 2001 From: Petr Kurapov Date: Wed, 28 Jun 2023 12:50:07 +0000 Subject: [PATCH] Add missing destructor --- omniscidb/L0Mgr/L0Mgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omniscidb/L0Mgr/L0Mgr.cpp b/omniscidb/L0Mgr/L0Mgr.cpp index d66cbeab7..5dadd0f7d 100644 --- a/omniscidb/L0Mgr/L0Mgr.cpp +++ b/omniscidb/L0Mgr/L0Mgr.cpp @@ -114,6 +114,10 @@ ze_command_list_handle_t L0CommandList::handle() const { L0CommandList::~L0CommandList() { // TODO: maybe return to pool + auto status = zeCommandListDestroy(handle_); + if (status) { + std::cerr << "Non-zero status for command list destructor" << std::endl; + } } void L0CommandList::copy(void* dst, const void* src, const size_t num_bytes) {