8180473: Use proper deallocation for FileBuff::_bigbuf
Summary: Use the array-specific delete operator instead of the scalar delete operator.
Reviewed-by: kvn
--- 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----------------------------------------