Code in WindowsManifestMerger.cpp could cause mem leak.
For code in function mergeNamespaces in line 330, it has 2
pointer OriginalDefinedDefaultHref and NewDefinedDefaultHref
which could point to mem which allocated by new operator,
in some branch ends with return it didn't handle them which could
be a risk.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/WindowsManifest/WindowsManifestMerger.cpp | ||
---|---|---|
352 | Do we need to free the memory when the error is taken? |
Do we need to free the memory when the error is taken?