From ee31d02e8bacbd09139c36e7cf0f8b0efbc0c21b Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:49:58 -0300 Subject: [PATCH] Fixed memory allocation/deallocation issue reported by ASAN in tests --- exaudfclient/base/javacontainer/test/cpp/javavm_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exaudfclient/base/javacontainer/test/cpp/javavm_test.cc b/exaudfclient/base/javacontainer/test/cpp/javavm_test.cc index f4ec7f39..8056b406 100644 --- a/exaudfclient/base/javacontainer/test/cpp/javavm_test.cc +++ b/exaudfclient/base/javacontainer/test/cpp/javavm_test.cc @@ -32,6 +32,6 @@ void JavaVMTest::run(std::string scriptCode, SwigFactoryTestImpl & swigFactory) javaVMInternalStatus.m_classpath = javaVMImpl.m_classpath; javaVMInternalStatus.m_jvmOptions = javaVMImpl.m_jvmOptions; javaVMInternalStatus.m_needsCompilation = javaVMImpl.m_needsCompilation; - delete script_code; + ::free(script_code); }