diff options
Diffstat (limited to 'src/zmalloc.c')
-rw-r--r-- | src/zmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zmalloc.c b/src/zmalloc.c index da62447e1..ab4af99e2 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -72,7 +72,7 @@ void zlibc_free(void *ptr) { size_t _n = (__n); \ if (_n&(sizeof(long)-1)) _n += sizeof(long)-(_n&(sizeof(long)-1)); \ if (zmalloc_thread_safe) { \ - atomicIncr(used_memory,__n,&used_memory_mutex); \ + atomicIncr(used_memory,__n,used_memory_mutex); \ } else { \ used_memory += _n; \ } \ @@ -82,7 +82,7 @@ void zlibc_free(void *ptr) { size_t _n = (__n); \ if (_n&(sizeof(long)-1)) _n += sizeof(long)-(_n&(sizeof(long)-1)); \ if (zmalloc_thread_safe) { \ - atomicDecr(used_memory,__n,&used_memory_mutex); \ + atomicDecr(used_memory,__n,used_memory_mutex); \ } else { \ used_memory -= _n; \ } \ @@ -202,7 +202,7 @@ size_t zmalloc_used_memory(void) { size_t um; if (zmalloc_thread_safe) { - atomicGet(used_memory,um,&used_memory_mutex); + atomicGet(used_memory,um,used_memory_mutex); } else { um = used_memory; } |