From 78281fef749d1f8a4ddef6e9d47698bb8ecac727 Mon Sep 17 00:00:00 2001 From: Vladislav Volkov Date: Sat, 12 Feb 2022 15:48:49 +0300 Subject: [PATCH] [CPU] [Ngraph] Fix of memory leak in PassBase::get_name and leak in jit_avx2_1x1_convolution_with_dw_conv_fwd_t kernel (#10199) --- src/core/src/pass/pass.cpp | 7 ++++++- src/plugins/intel_cpu/thirdparty/mkl-dnn | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/src/pass/pass.cpp b/src/core/src/pass/pass.cpp index 6477b647300..0081fb55eb1 100644 --- a/src/core/src/pass/pass.cpp +++ b/src/core/src/pass/pass.cpp @@ -7,6 +7,8 @@ # include #endif +#include + #include "atomic_guard.hpp" #include "ngraph/pass/pass.hpp" #include "openvino/pass/manager.hpp" @@ -33,7 +35,10 @@ std::string ov::pass::PassBase::get_name() const { std::string pass_name = typeid(*p).name(); #ifndef _WIN32 int status; - pass_name = abi::__cxa_demangle(pass_name.c_str(), nullptr, nullptr, &status); + std::unique_ptr demangled_name( + abi::__cxa_demangle(pass_name.c_str(), nullptr, nullptr, &status), + std::free); + pass_name = demangled_name.get(); #endif return pass_name; } else { diff --git a/src/plugins/intel_cpu/thirdparty/mkl-dnn b/src/plugins/intel_cpu/thirdparty/mkl-dnn index 6107578bcaa..3a1757db429 160000 --- a/src/plugins/intel_cpu/thirdparty/mkl-dnn +++ b/src/plugins/intel_cpu/thirdparty/mkl-dnn @@ -1 +1 @@ -Subproject commit 6107578bcaa7ce729634e58181f30d202861be26 +Subproject commit 3a1757db429dadb9f1bfd83597c7cdd80bbb8228