From 3adb45144aca819c9796168ecde7a263169d9d4d Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 2 Mar 2006 11:30:25 -0500 Subject: [PATCH] Fix memory allocation error in Port::memsetBlobFunctional. mem/port.cc: Delete temp buffer for memset. --HG-- extra : convert_revision : d7e2868c173442ca904898633f7ea9fc5e612dd3 --- mem/port.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2