diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-21 17:35:29 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-21 17:35:29 +0400 |
commit | fd6c856b34c8fda53b7e45e3dcc17625206ed4fb (patch) | |
tree | b4c8d1c62937038cb39bdcf7879110525fb05480 /src/mem_pool.c | |
parent | 875d1dd367eb433ae77a092148f483e9b9449a47 (diff) | |
download | rspamd-fd6c856b34c8fda53b7e45e3dcc17625206ed4fb.tar.gz rspamd-fd6c856b34c8fda53b7e45e3dcc17625206ed4fb.zip |
Add workaround for clang under linux.
Fix problems found by static analyzing.
Diffstat (limited to 'src/mem_pool.c')
-rw-r--r-- | src/mem_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem_pool.c b/src/mem_pool.c index 43ffc86a0..32eb4d786 100644 --- a/src/mem_pool.c +++ b/src/mem_pool.c @@ -513,7 +513,7 @@ memory_pool_delete (memory_pool_t * pool) cur_shared = cur_shared->next; STAT_LOCK (); mem_pool_stat->chunks_freed++; - mem_pool_stat->bytes_allocated -= tmp->len; + mem_pool_stat->bytes_allocated -= tmp_shared->len; STAT_UNLOCK (); munmap ((void *)tmp_shared, tmp_shared->len + sizeof (struct _pool_chain_shared)); } |