mirror of
https://github.com/coturn/coturn.git
synced 2025-11-03 16:31:22 +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(func);
|
||||||
UNUSED_ARG(line);
|
UNUSED_ARG(line);
|
||||||
|
|
||||||
|
void *ret = NULL;
|
||||||
|
|
||||||
if(!r) {
|
if(!r) {
|
||||||
void *ret = malloc(size);
|
ret = malloc(size);
|
||||||
ns_bzero(ret, size);
|
ns_bzero(ret, size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *ret = NULL;
|
|
||||||
|
|
||||||
pthread_mutex_lock(&r->mutex_sm);
|
pthread_mutex_lock(&r->mutex_sm);
|
||||||
|
|
||||||
size = ((size_t)((size+sizeof(void*))/(sizeof(void*)))) * sizeof(void*);
|
size = ((size_t)((size+sizeof(void*))/(sizeof(void*)))) * sizeof(void*);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user