Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit c13e868

Browse files
committed
Add missing destructor
1 parent e1d6f60 commit c13e868

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

omniscidb/L0Mgr/L0Mgr.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ ze_command_list_handle_t L0CommandList::handle() const {
114114

115115
L0CommandList::~L0CommandList() {
116116
// TODO: maybe return to pool
117+
auto status = zeCommandListDestroy(handle_);
118+
if (status) {
119+
std::cerr << "Non-zero status for command list destructor" << std::endl;
120+
}
117121
}
118122

119123
void L0CommandList::copy(void* dst, const void* src, const size_t num_bytes) {

0 commit comments

Comments
 (0)