mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-30 10:31:07 +00:00
修改ebpf 内存泄漏
Signed-off-by: wenlong_12 <wenlong12@huawei.com>
This commit is contained in:
parent
993e6ac9b8
commit
c15cefbc60
@ -55,8 +55,7 @@ EbpfConverter::EbpfConverter(const std::string& inputPath, const std::string& ou
|
||||
EbpfConverter::~EbpfConverter()
|
||||
{
|
||||
std::map<std::string, SymbolInfo>::iterator iter;
|
||||
for (iter = symbolInfo_.begin(); iter != symbolInfo_.end(); iter++)
|
||||
{
|
||||
for (iter = symbolInfo_.begin(); iter != symbolInfo_.end(); iter++) {
|
||||
if (iter->second.symTab != nullptr) {
|
||||
delete[] iter->second.symTab;
|
||||
iter->second.symTab = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user