Skip to content

Commit

Permalink
fix: deallocate mem_fetch object in DramRamulator2 (Issue #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
HamHyungkyu committed Sep 5, 2024
1 parent 24445a4 commit ac10777
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Dram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ MemoryAccess* DramRamulator2::top(uint32_t cid) {

void DramRamulator2::pop(uint32_t cid) {
assert(!is_empty(cid));
_mem[cid]->return_queue_pop();
NDPSim::mem_fetch* mf = _mem[cid]->return_queue_pop();
delete mf;
}

void DramRamulator2::print_stat() {
for (int ch = 0; ch < _n_ch; ch++) {
_mem[ch]->print(stdout);
}
}
}

0 comments on commit ac10777

Please sign in to comment.