add test to repro bug

This commit is contained in:
Anthony Minessale 2017-04-07 17:21:45 -05:00
parent 945a3b2569
commit 8065691b3f
2 changed files with 12 additions and 1 deletions

View File

@ -52,7 +52,7 @@ typedef struct alloc_prefix_s {
} alloc_prefix_t;
#define PREFIX_SIZE sizeof(struct alloc_prefix_s)
//#define DEBUG 1
#define DEBUG 1
/*
* bitflag tools for Variable and a Flag
*/

View File

@ -62,6 +62,17 @@ int main(int argc, char **argv)
}
}
status = ks_pool_open(&pool);
void *blah = ks_pool_alloc(pool, 64 * 1024);
ks_pool_free(pool, &blah);
blah = ks_pool_alloc(pool, 2 * 1024);
ks_pool_close(&pool);
status = ks_pool_open(&pool);
printf("OPEN: %p\n", (void *)pool);