summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/mem-pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/mem-pool.c')
-rw-r--r--libglusterfs/src/mem-pool.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libglusterfs/src/mem-pool.c b/libglusterfs/src/mem-pool.c
index 90df2f39e0e..3937fcc376a 100644
--- a/libglusterfs/src/mem-pool.c
+++ b/libglusterfs/src/mem-pool.c
@@ -118,8 +118,12 @@ mem_get (struct mem_pool *mem_pool)
* allocator is coming RSN.
*/
ptr = MALLOC (mem_pool->real_sizeof_type);
- if (!ptr)
- goto unlocked_out;
+
+ /* Memory coming from the heap need not be transformed from a
+ * chunkhead to a usable pointer since it is not coming from
+ * the pool.
+ */
+ goto unlocked_out;
}
fwd_addr_out:
ptr = mem_pool_chunkhead2ptr (ptr);