mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
src: -Wmismatched-new-delete in debug_utils.cc
PR-URL: https://github.com/nodejs/node/pull/58844 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
0f7e75f7f6
commit
1c2fa7ee70
@ -488,7 +488,7 @@ std::vector<std::string> NativeSymbolDebuggingContext::GetLoadedLibraries() {
|
||||
WideCharToMultiByte(
|
||||
CP_UTF8, 0, module_name, -1, str, size, nullptr, nullptr);
|
||||
list.emplace_back(str);
|
||||
delete str;
|
||||
delete[] str;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user