Skip to content

Commit b667a43

Browse files
committed
LLVMExecutionContext: Deallocate strings when destroyed
1 parent 301f920 commit b667a43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/engine/internal/llvm/llvmexecutioncontext.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ LLVMExecutionContext::~LLVMExecutionContext()
4141
} else
4242
assert(false);
4343
}
44+
45+
// Deallocate strings
46+
for (const auto &[functionId, strings] : m_stringVectors) {
47+
for (StringPtr *str : strings)
48+
string_pool_free(str);
49+
}
4450
}
4551

4652
void *LLVMExecutionContext::coroutineHandle() const

0 commit comments

Comments
 (0)