Skip to content

Commit

Permalink
ofproto-dpif-rid: Fix memory leak in recirc_id_pool_destroy().
Browse files Browse the repository at this point in the history
recirc_id_pool_create() allocates memory but recirc_id_pool_destroy() did
not destroy it.

Found by valgrind.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Thomas Graf <[email protected]>
  • Loading branch information
blp committed Jun 6, 2014
1 parent 1406c79 commit 6a5be73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofproto/ofproto-dpif-rid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a5be73

Please sign in to comment.