8180473: Use proper deallocation for FileBuff::_bigbuf
authorzmajo
Thu, 18 May 2017 17:20:59 +0200
changeset 46478 f800745ba3cb
parent 46477 50faf1da054c
child 46479 a10af96a2dbb
8180473: Use proper deallocation for FileBuff::_bigbuf Summary: Use the array-specific delete operator instead of the scalar delete operator. Reviewed-by: kvn
hotspot/src/share/vm/adlc/filebuff.cpp
--- a/hotspot/src/share/vm/adlc/filebuff.cpp	Thu May 18 13:17:28 2017 +0000
+++ b/hotspot/src/share/vm/adlc/filebuff.cpp	Thu May 18 17:20:59 2017 +0200
@@ -67,7 +67,7 @@
 //------------------------------~FileBuff--------------------------------------
 // Nuke the FileBuff
 FileBuff::~FileBuff() {
-  delete _bigbuf;
+  delete[] _bigbuf;
 }
 
 //------------------------------get_line----------------------------------------