Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 12, 2024
1 parent 011ea2c commit 3e0e63f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ww/generic_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ static void poolDestroyItemHandle(struct master_pool_s *pool, master_pool_item_t
{
gpool->destroy_item_handle(gpool, item);
}
globalFree(item);
else
{
globalFree(item);
}
}

void poolReCharge(generic_pool_t *pool)
Expand Down Expand Up @@ -78,7 +81,7 @@ static generic_pool_t *allocateGenericPool(struct master_pool_s *mp, unsigned in
.mp = mp,
.create_item_handle = create_h,
.destroy_item_handle = destroy_h};
installMasterPoolAllocCallbacks(pool_ptr->mp, pool_ptr,poolCreateItemHandle, poolDestroyItemHandle);
installMasterPoolAllocCallbacks(pool_ptr->mp, pool_ptr, poolCreateItemHandle, poolDestroyItemHandle);
// poolFirstCharge(pool_ptr);
return pool_ptr;
}
Expand Down

0 comments on commit 3e0e63f

Please sign in to comment.