From a745dfcfc4d375fe20d62ed69afe1051d082b402 Mon Sep 17 00:00:00 2001 From: "gkinkie@gmail.com" Date: Sun, 5 Feb 2023 10:08:41 +0000 Subject: [PATCH] Add memFreeRigid to mem/libminimal.la (#1258) Complement the already-included memAllocRigid, to better support unit tests --- src/mem/minimal.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mem/minimal.cc b/src/mem/minimal.cc index 16c71473c7..d0b442984c 100644 --- a/src/mem/minimal.cc +++ b/src/mem/minimal.cc @@ -80,6 +80,12 @@ memAllocRigid(const size_t netSize) return xmalloc(netSize); } +void +memFreeRigid(void * const buf, size_t) +{ + xfree(buf); +} + void memFreeBuf(size_t, void * const buf) { -- 2.47.2