8180433: Cleaner CLR invocation handling
Object allocated with operator new[] should be deallocated with operator delete[]
Reviewed-by: kevinw
diff --git a/jdk/src/share/sample/vm/jvm-clr/invoker.cpp b/jdk/src/share/sample/vm/jvm-clr/invoker.cpp
index 67f3254..f13100f 100644
--- a/jdk/src/share/sample/vm/jvm-clr/invoker.cpp
+++ b/jdk/src/share/sample/vm/jvm-clr/invoker.cpp
@@ -152,7 +152,7 @@
int nReturn = invokeCLR( wszApplication);
- delete wszApplication;
+ delete[] wszApplication;
return nReturn;
}