From 36dabe6183af98b2e3f6d0316436dc3affc3d986 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 30 Mar 2025 14:35:27 -0400 Subject: Free everything I allocated :) --- tests/id.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/id.cc b/tests/id.cc index 6d6a155..be50ed5 100644 --- a/tests/id.cc +++ b/tests/id.cc @@ -125,6 +125,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary r-type # two", "[id]") CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0x00000000); CHECK(i->get_mnemonic() == SUB); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # one", "[id]") @@ -144,6 +146,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # one", "[id]") CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0xF); CHECK(i->get_mnemonic() == SFTLI); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # two", "[id]") @@ -163,6 +167,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # two", "[id]") CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0xCC); CHECK(i->get_mnemonic() == STORE); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # one", "[id]") @@ -181,6 +187,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # one", "[id]") CHECK(i->get_s1() == 0x00000000); // registers are empty CHECK(i->get_s2() == 0x3456); CHECK(i->get_mnemonic() == BOF); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # two", "[id]") @@ -199,6 +207,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # two", "[id]") CHECK(i->get_s1() == 0x00000000); // registers are empty CHECK(i->get_s2() == 0xBBCCF); CHECK(i->get_mnemonic() == JAL); + + delete i; } TEST_CASE_METHOD(IDFixture, "read does not conflict with read", "[id]") -- cgit v1.2.3