Fix minor memory leak.
--HG-- extra : convert_revision : aa222dd95d833b16b0f474ec156bd6955c2c54c6
This commit is contained in:
@@ -51,12 +51,18 @@ LSQUnit<Impl>::StoreCompletionEvent::process()
|
||||
|
||||
//lsqPtr->removeMSHR(lsqPtr->storeQueue[storeIdx].inst->seqNum);
|
||||
|
||||
if (lsqPtr->isSwitchedOut())
|
||||
if (lsqPtr->isSwitchedOut()) {
|
||||
if (wbEvent)
|
||||
delete wbEvent;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
lsqPtr->cpu->wakeCPU();
|
||||
if (wbEvent)
|
||||
if (wbEvent) {
|
||||
wbEvent->process();
|
||||
delete wbEvent;
|
||||
}
|
||||
lsqPtr->completeStore(storeIdx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user