From: Steve Reinhardt Date: Thu, 2 Mar 2006 16:30:25 +0000 (-0500) Subject: Fix memory allocation error in Port::memsetBlobFunctional. X-Git-Tag: m5_2.0_beta1~208 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3adb45144aca819c9796168ecde7a263169d9d4d;p=gem5.git Fix memory allocation error in Port::memsetBlobFunctional. mem/port.cc: Delete temp buffer for memset. --HG-- extra : convert_revision : d7e2868c173442ca904898633f7ea9fc5e612dd3 --- 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; }