diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-04 20:41:05 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-04 20:41:05 +0400 |
commit | 028adcf6764fd816ad69a516e7873005ad4bee24 (patch) | |
tree | 7604a4388c0644cad779d28292e85bba55fa318e /src/mem_pool.c | |
parent | 3f96e6a7a317e70b85b32de4aa06681c11d79006 (diff) | |
download | rspamd-028adcf6764fd816ad69a516e7873005ad4bee24.tar.gz rspamd-028adcf6764fd816ad69a516e7873005ad4bee24.zip |
Fix access to already freed memory.
Remove assert.
Diffstat (limited to 'src/mem_pool.c')
-rw-r--r-- | src/mem_pool.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mem_pool.c b/src/mem_pool.c index 252fa54f9..d5b3ddf6e 100644 --- a/src/mem_pool.c +++ b/src/mem_pool.c @@ -231,7 +231,6 @@ memory_pool_alloc (memory_pool_t * pool, gsize size) } tmp = align_ptr (cur->pos, MEM_ALIGNMENT); cur->pos = tmp + size; - g_assert (cur->pos - cur->begin <= (gint)cur->len); return tmp; } return NULL; |