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:
parent
99b75a6f12
commit
ec10ce591d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user