From 5204e761fb408776d1e4f0b01f0bad19f2d07e10 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Mon, 5 Dec 2011 11:21:42 +0100 Subject: [PATCH] mempool: Fixed a memory leak in mp_pop(). --- ucw/mempool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ucw/mempool.c b/ucw/mempool.c index d04e15ef..f776caaa 100644 --- a/ucw/mempool.c +++ b/ucw/mempool.c @@ -344,8 +344,7 @@ void mp_pop(struct mempool *pool) { ASSERT(pool->state.next); - struct mempool_state state = pool->state; - mp_restore(pool, &state); + mp_restore(pool, pool->state.next); } #ifdef TEST -- 2.39.2