summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}