changeset 12808:de63a6b6eb77

8180433: Cleaner CLR invocation handling Summary: object allocated with operator new[] should be deallocated with operator delete[] Reviewed-by: kevinw
author shshahma
date Wed, 04 Oct 2017 05:39:18 -0700
parents e61417d4c13d
children 853f699a5273
files src/share/sample/vm/jvm-clr/invoker.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/sample/vm/jvm-clr/invoker.cpp	Tue Oct 10 12:47:17 2017 -0700
+++ b/src/share/sample/vm/jvm-clr/invoker.cpp	Wed Oct 04 05:39:18 2017 -0700
@@ -152,7 +152,7 @@
 
     int nReturn = invokeCLR( wszApplication);
 
-    delete wszApplication;
+    delete[] wszApplication;
 
     return nReturn;
 }