Skip to content

Commit

Permalink
graph: backend: dnnl: destroy created dnnl_memory_desc_t to avoid mem…
Browse files Browse the repository at this point in the history
… leak
  • Loading branch information
YangQun1 authored and vpirogov committed Mar 30, 2023
1 parent 5287ba9 commit 928065b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graph/backend/dnnl/op_executable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ struct conv_fwd_executable_t : public op_executable_t {
static_cast<dnnl_data_type_t>(dtype),
format_tag.data());
dnnl::memory::desc new_to_desc;
new_to_desc.reset(new_to_desc_c, true);
new_to_desc.reset(new_to_desc_c);
const memory to_mem
= dnnl::memory(new_to_desc, psrc_mem.get_engine());
to_mem.set_data_handle(dst_mem.get_data_handle());
Expand Down Expand Up @@ -359,7 +359,7 @@ struct conv_fwd_executable_t : public op_executable_t {
static_cast<dnnl_data_type_t>(dtype),
format_tag.data());
dnnl::memory::desc new_to_desc;
new_to_desc.reset(new_to_desc_c, true);
new_to_desc.reset(new_to_desc_c);
const memory to_mem
= dnnl::memory(new_to_desc, psrc_mem.get_engine());
to_mem.set_data_handle(dst_mem.get_data_handle());
Expand Down

0 comments on commit 928065b

Please # to comment.