File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -988,19 +988,6 @@ void disjoint_pool_finalize(void *pool) {
988988
989989 disjoint_pool_t * hPool = (disjoint_pool_t * )pool ;
990990
991- for (size_t i = 0 ; i < hPool -> buckets_num ; i ++ ) {
992- destroy_bucket (hPool -> buckets [i ]);
993- }
994-
995- VALGRIND_DO_DESTROY_MEMPOOL (hPool );
996-
997- umfDisjointPoolSharedLimitsDestroy (hPool -> default_shared_limits );
998- critnib_delete (hPool -> known_slabs );
999-
1000- utils_mutex_destroy_not_free (& hPool -> known_slabs_map_lock );
1001-
1002- umf_ba_global_free (hPool );
1003-
1004991 if (hPool -> params .pool_trace > 1 ) {
1005992 bool title_printed = false;
1006993 size_t high_bucket_size ;
@@ -1017,6 +1004,19 @@ void disjoint_pool_finalize(void *pool) {
10171004 high_peak_slabs_in_use );
10181005 }
10191006 }
1007+
1008+ for (size_t i = 0 ; i < hPool -> buckets_num ; i ++ ) {
1009+ destroy_bucket (hPool -> buckets [i ]);
1010+ }
1011+
1012+ VALGRIND_DO_DESTROY_MEMPOOL (hPool );
1013+
1014+ umfDisjointPoolSharedLimitsDestroy (hPool -> default_shared_limits );
1015+ critnib_delete (hPool -> known_slabs );
1016+
1017+ utils_mutex_destroy_not_free (& hPool -> known_slabs_map_lock );
1018+
1019+ umf_ba_global_free (hPool );
10201020}
10211021
10221022static umf_memory_pool_ops_t UMF_DISJOINT_POOL_OPS = {
You can’t perform that action at this time.
0 commit comments