1
0
mirror of https://github.com/coturn/coturn.git synced 2025-11-01 15:31:00 +01:00
This commit is contained in:
mom040267 2014-10-06 00:01:48 +00:00
parent 0204f7b0fe
commit b0a4a5389a

View File

@ -3642,14 +3642,14 @@ void* allocate_super_memory_region_func(super_memory_t *r, size_t size, const ch
UNUSED_ARG(func);
UNUSED_ARG(line);
void *ret = NULL;
if(!r) {
void *ret = malloc(size);
ret = malloc(size);
ns_bzero(ret, size);
return ret;
}
void *ret = NULL;
pthread_mutex_lock(&r->mutex_sm);
size = ((size_t)((size+sizeof(void*))/(sizeof(void*)))) * sizeof(void*);