summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-06 01:19:39 -0500
committerbd <bdunahu@operationnull.com>2025-03-06 01:19:39 -0500
commite3e70b16d27b6972d6fe6f032426b889b03d1aef (patch)
treec05788fef0a2187237196accaba313139aae3429 /tests
parentc38c0858ad4c9158a8d4361069309a9f0ff3aed8 (diff)
Fix a memory leak
Diffstat (limited to 'tests')
-rw-r--r--tests/dram.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/dram.cc b/tests/dram.cc
index be69263..55d4d24 100644
--- a/tests/dram.cc
+++ b/tests/dram.cc
@@ -48,6 +48,7 @@ TEST_CASE(
actual = d->view(0, 1)[0];
REQUIRE(expected == actual);
REQUIRE(r->status == WAIT);
+ delete r;
// MEMORY CYCLE 2
r = d->write(MEMORY, w, 0x00000000);
@@ -170,6 +171,7 @@ TEST_CASE(
actual = d->view(0, 1)[0];
REQUIRE(expected == actual);
REQUIRE(r->status == WAIT);
+ delete r;
// MEMORY CYCLE 2
actual = d->view(0, 1)[0];