mirror of
https://github.com/coturn/coturn.git
synced 2025-11-01 15:31:00 +01:00
fixes
This commit is contained in:
parent
0204f7b0fe
commit
b0a4a5389a
@ -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*);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user