# HG changeset patch # User zmajo # Date 1495120859 -7200 # Node ID f800745ba3cb18b8dd8f98bd1f58d12a9111e983 # Parent 50faf1da054c214159a76b5445845810a629e294 8180473: Use proper deallocation for FileBuff::_bigbuf Summary: Use the array-specific delete operator instead of the scalar delete operator. Reviewed-by: kvn diff -r 50faf1da054c -r f800745ba3cb 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----------------------------------------