14 lines
474 B
Diff
14 lines
474 B
Diff
diff --git a/slabs.c b/slabs.c
|
|
index 047d45a..577304d 100644
|
|
--- a/slabs.c
|
|
+++ b/slabs.c
|
|
@@ -456,6 +456,8 @@ static void do_slabs_free_chunked(item *it, const size_t size) {
|
|
it->prev = 0;
|
|
// header object's original classid is stored in chunk.
|
|
p = &slabclass[chunk->orig_clsid];
|
|
+ // original class id needs to be set on free memory.
|
|
+ it->slabs_clsid = chunk->orig_clsid;
|
|
if (chunk->next) {
|
|
chunk = chunk->next;
|
|
chunk->prev = 0;
|