From e3e70b16d27b6972d6fe6f032426b889b03d1aef Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 6 Mar 2025 01:19:39 -0500 Subject: Fix a memory leak --- tests/dram.cc | 2 ++ 1 file changed, 2 insertions(+) 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]; -- cgit v1.2.3