mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-06 21:19:17 +00:00
add test to repro bug
This commit is contained in:
parent
945a3b2569
commit
8065691b3f
@ -52,7 +52,7 @@ typedef struct alloc_prefix_s {
|
|||||||
} alloc_prefix_t;
|
} alloc_prefix_t;
|
||||||
|
|
||||||
#define PREFIX_SIZE sizeof(struct alloc_prefix_s)
|
#define PREFIX_SIZE sizeof(struct alloc_prefix_s)
|
||||||
//#define DEBUG 1
|
#define DEBUG 1
|
||||||
/*
|
/*
|
||||||
* bitflag tools for Variable and a Flag
|
* bitflag tools for Variable and a Flag
|
||||||
*/
|
*/
|
||||||
|
@ -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);
|
status = ks_pool_open(&pool);
|
||||||
|
|
||||||
printf("OPEN: %p\n", (void *)pool);
|
printf("OPEN: %p\n", (void *)pool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user