Add missing deregister before extents_leak.

This fixes an regression introduced by 211b1f3 (refactor extent split).
This commit is contained in:
Qi Wang 2017-11-19 17:01:53 -08:00 committed by Qi Wang
parent e475d03752
commit 26a8f82c48

View File

@ -988,6 +988,7 @@ extent_recycle_split(tsdn_t *tsdn, arena_t *arena,
extent_deregister(tsdn, to_salvage);
}
if (to_leak != NULL) {
extent_deregister(tsdn, to_leak);
extents_leak(tsdn, arena, r_extent_hooks, extents,
to_leak, growing_retained);
}