]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add memFreeRigid to mem/libminimal.la (#1258)
authorgkinkie@gmail.com <kinkie@squid-cache.org>
Sun, 5 Feb 2023 10:08:41 +0000 (10:08 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 5 Feb 2023 10:27:12 +0000 (10:27 +0000)
Complement the already-included memAllocRigid,
to better support unit tests

src/mem/minimal.cc

index 16c71473c7897934762425b6326cb5c1c3715780..d0b442984ca7f902f9e79dbd62179b28f88d3b4d 100644 (file)
@@ -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)
 {