From 228c52e210cbc0aefd522eac61cf2e8af311fdc6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 5 Jun 2014 18:46:23 -0700 Subject: [PATCH] ofproto-dpif-rid: Fix memory leak in recirc_id_pool_destroy(). recirc_id_pool_create() allocates memory but recirc_id_pool_destroy() did not destroy it. Found by valgrind. Signed-off-by: Ben Pfaff Acked-by: Thomas Graf --- ofproto/ofproto-dpif-rid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ofproto/ofproto-dpif-rid.c b/ofproto/ofproto-dpif-rid.c index 9e7e9a32e..b3d98ebdd 100644 --- a/ofproto/ofproto-dpif-rid.c +++ b/ofproto/ofproto-dpif-rid.c @@ -70,6 +70,7 @@ recirc_id_pool_destroy(struct recirc_id_pool *pool) { rid_pool_uninit(&pool->rids); ovs_mutex_destroy(&pool->lock); + free(pool); } uint32_t -- 2.20.1