diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-03-02 11:30:25 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-03-02 11:30:25 -0500 |
commit | 3adb45144aca819c9796168ecde7a263169d9d4d (patch) | |
tree | 5784900d6dea4ad5d190bfeb7cba175bae7176e1 /mem/port.cc | |
parent | e7f442d5273bec95f3412cdc5a82742fe32f8cf3 (diff) | |
download | gem5-3adb45144aca819c9796168ecde7a263169d9d4d.tar.xz |
Fix memory allocation error in Port::memsetBlobFunctional.
mem/port.cc:
Delete temp buffer for memset.
--HG--
extra : convert_revision : d7e2868c173442ca904898633f7ea9fc5e612dd3
Diffstat (limited to 'mem/port.cc')
-rw-r--r-- | mem/port.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mem/port.cc b/mem/port.cc index e080f8b81..75362b472 100644 --- a/mem/port.cc +++ b/mem/port.cc @@ -71,4 +71,6 @@ Port::memsetBlobFunctional(Addr addr, uint8_t val, int size) memset(buf, val, size); blobHelper(addr, buf, size, Write); + + delete buf; } |