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:
Zoltan Majo 2017-05-18 17:20:59 +02:00
parent 50f9e3ed40
commit 8d7312538b

View File

@ -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----------------------------------------