From: gkinkie@gmail.com Date: Sun, 5 Feb 2023 10:08:41 +0000 (+0000) Subject: Add memFreeRigid to mem/libminimal.la (#1258) X-Git-Tag: SQUID_6_0_1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a745dfcfc4d375fe20d62ed69afe1051d082b402;p=thirdparty%2Fsquid.git Add memFreeRigid to mem/libminimal.la (#1258) Complement the already-included memAllocRigid, to better support unit tests --- 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) {