Fix memory allocation error in Port::memsetBlobFunctional.
mem/port.cc: Delete temp buffer for memset. --HG-- extra : convert_revision : d7e2868c173442ca904898633f7ea9fc5e612dd3
This commit is contained in:
parent
e7f442d527
commit
3adb45144a
1 changed files with 2 additions and 0 deletions
|
@ -71,4 +71,6 @@ Port::memsetBlobFunctional(Addr addr, uint8_t val, int size)
|
|||
|
||||
memset(buf, val, size);
|
||||
blobHelper(addr, buf, size, Write);
|
||||
|
||||
delete buf;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue