mem: Fix use-after-free bug

Running with valgrind I noticed a use after free originating from
simple_mem.cc.  It looks like this is a known issue and this additional call
site was missed in an earlier patch.
This commit is contained in:
Mitch Hayenga
2013-01-08 08:54:06 -05:00
parent 8480615d8d
commit dc4a0aa2fa

View File

@@ -154,7 +154,7 @@ SimpleMemory::recvTimingReq(PacketPtr pkt)
assert(pkt->isResponse());
port.schedTimingResp(pkt, curTick() + latency);
} else {
delete pkt;
pendingDelete.push_back(pkt);
}
return true;