about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-02 06:42:34 +0000
committerEric Wong <e@80x24.org>2022-12-02 09:40:01 +0000
commitf19b83952ae527c84b9a34a089f71fabbafc8f3b (patch)
treee019c5f475636e6e36dd967330b573f15c1056e9
parent021a1d6ec4865653ac5c265cbc55269b37e3b59f (diff)
downloadmwrap-f19b83952ae527c84b9a34a089f71fabbafc8f3b.tar.gz
While this is copied from the pre-zeroed TSD, it won't always
be the case since the TSD area will be used more extensively.
-rw-r--r--mwrap_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mwrap_core.h b/mwrap_core.h
index dab3e77..9b771d2 100644
--- a/mwrap_core.h
+++ b/mwrap_core.h
@@ -258,6 +258,7 @@ again:
                 l->mtx = mutex_assign();
                 l->age_total = 0;
                 l->max_lifespan = 0;
+                l->freed_bytes = 0;
                 l->frees = 0;
                 l->allocations = 1;
                 CDS_INIT_LIST_HEAD(&l->allocs);