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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user