Skip to content

Commit 1c30dc8

Browse files
svenvhvmaksimo
authored andcommitted
Fix OpModuleProcessed memory leak
Original commit: KhronosGroup/SPIRV-LLVM-Translator@8f59b42
1 parent 452e4eb commit 1c30dc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVModule.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ SPIRVModuleImpl::~SPIRVModuleImpl() {
541541

542542
for (auto C : CapMap)
543543
delete C.second;
544+
545+
for (auto *M : ModuleProcessedVec)
546+
delete M;
544547
}
545548

546549
const std::shared_ptr<const SPIRVLine> &

0 commit comments

Comments
 (0)