From 5dfc9d1cfdc3f9a1bc7a48e6b9286767b287858c Mon Sep 17 00:00:00 2001 From: shshahma Date: Wed, 4 Oct 2017 05:39:18 -0700 Subject: [PATCH] 8180433: Cleaner CLR invocation handling Summary: object allocated with operator new[] should be deallocated with operator delete[] Reviewed-by: kevinw --- src/share/sample/vm/jvm-clr/invoker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/sample/vm/jvm-clr/invoker.cpp b/src/share/sample/vm/jvm-clr/invoker.cpp index 67f325431..f13100f30 100644 --- a/src/share/sample/vm/jvm-clr/invoker.cpp +++ b/src/share/sample/vm/jvm-clr/invoker.cpp @@ -152,7 +152,7 @@ int __stdcall invokeCLR( const char* szApplication){ int nReturn = invokeCLR( wszApplication); - delete wszApplication; + delete[] wszApplication; return nReturn; } -- GitLab