Skip to content
Snippets Groups Projects
Commit 357d68d7 authored by Guy Zana's avatar Guy Zana
Browse files

uma: fix order to finit/dtor in uma_zfree()

the mbuf ext buffer is freed in the dtor, so it should be called before finit.
this is fixing a crash that surfaced by using the conf-memory-debug=1
parent 62712056
No related branches found
No related tags found
No related merge requests found
......@@ -46,14 +46,14 @@ void uma_zfree_arg(uma_zone_t zone, void *item, void *udata)
return;
}
if (zone->uz_fini) {
zone->uz_fini(item, zone->uz_size);
}
if (zone->uz_dtor) {
zone->uz_dtor(item, zone->uz_size, udata);
}
if (zone->uz_fini) {
zone->uz_fini(item, zone->uz_size);
}
free(item);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment