You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
474 B
14 lines
474 B
4 years ago
|
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;
|