mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-01 03:30:34 +00:00
8180473: Use proper deallocation for FileBuff::_bigbuf
Use the array-specific delete operator instead of the scalar delete operator. Reviewed-by: kvn
This commit is contained in:
parent
50f9e3ed40
commit
8d7312538b
@ -67,7 +67,7 @@ FileBuff::FileBuff( BufferedFile *fptr, ArchDesc& archDesc) : _fp(fptr), _AD(arc
|
||||
//------------------------------~FileBuff--------------------------------------
|
||||
// Nuke the FileBuff
|
||||
FileBuff::~FileBuff() {
|
||||
delete _bigbuf;
|
||||
delete[] _bigbuf;
|
||||
}
|
||||
|
||||
//------------------------------get_line----------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user