summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-03-02 11:30:25 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-03-02 11:30:25 -0500
commit3adb45144aca819c9796168ecde7a263169d9d4d (patch)
tree5784900d6dea4ad5d190bfeb7cba175bae7176e1
parente7f442d5273bec95f3412cdc5a82742fe32f8cf3 (diff)
downloadgem5-3adb45144aca819c9796168ecde7a263169d9d4d.tar.xz
Fix memory allocation error in Port::memsetBlobFunctional.
mem/port.cc: Delete temp buffer for memset. --HG-- extra : convert_revision : d7e2868c173442ca904898633f7ea9fc5e612dd3
-rw-r--r--mem/port.cc2
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;
}