projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
radv: add all headers to the sources list
[mesa.git]
/
src
/
util
/
slab.c
diff --git
a/src/util/slab.c
b/src/util/slab.c
index cbe4c88d6148e44be781abd8aefe4bd7d26d8a12..4264814cabc926c623f47b5b1a9b70f5578f3664 100644
(file)
--- a/
src/util/slab.c
+++ b/
src/util/slab.c
@@
-174,11
+174,9
@@
void slab_destroy_child(struct slab_child_pool *pool)
static bool
slab_add_new_page(struct slab_child_pool *pool)
{
static bool
slab_add_new_page(struct slab_child_pool *pool)
{
- struct slab_page_header *page
;
-
unsigned i
;
+ struct slab_page_header *page
= malloc(sizeof(struct slab_page_header) +
+
pool->parent->num_elements * pool->parent->element_size)
;
- page = malloc(sizeof(struct slab_page_header) +
- pool->parent->num_elements * pool->parent->element_size);
if (!page)
return false;
if (!page)
return false;