[CPU] [Ngraph] Fix of memory leak in PassBase::get_name and leak in jit_avx2_1x1_convolution_with_dw_conv_fwd_t kernel (#10202)
This commit is contained in:
2
inference-engine/thirdparty/mkl-dnn
vendored
2
inference-engine/thirdparty/mkl-dnn
vendored
Submodule inference-engine/thirdparty/mkl-dnn updated: 3f67353385...470820c597
@@ -7,6 +7,8 @@
|
||||
#include <cxxabi.h>
|
||||
#endif
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "ngraph/pass/manager.hpp"
|
||||
#include "ngraph/pass/pass.hpp"
|
||||
|
||||
@@ -46,7 +48,9 @@ std::string 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<char, void (*)(void*)> demangled_name(
|
||||
abi::__cxa_demangle(pass_name.c_str(), nullptr, nullptr, &status), std::free);
|
||||
pass_name = demangled_name.get();
|
||||
#endif
|
||||
return pass_name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user