changeset 1747:e0984c6e47d9

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 7f634eb9f23a
children ca8a409fb6bb
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	Thu Jun 01 15:15:26 2017 -0700
+++ b/src/share/sample/vm/jvm-clr/invoker.cpp	Wed Oct 04 05:39:18 2017 -0700
@@ -143,7 +143,7 @@
 
     int nReturn = invokeCLR( wszApplication);
 
-    delete wszApplication;
+    delete[] wszApplication;
 
     return nReturn;
 }