delete -> delete[]. CID 151

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27522 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-15 12:15:54 +00:00
parent 99b75a6f12
commit ec10ce591d

View File

@ -456,7 +456,7 @@ AttributeStreamMemoryNode::BufferingGet(const char *name, uint32 type, off_t siz
{
char *newBuffer = new char[size];
if (!fReadFrom->Fill(newBuffer)) {
delete newBuffer;
delete[] newBuffer;
return NULL;
}