projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb4c7f
)
ofproto-dpif-rid: Fix memory leak in recirc_id_pool_destroy().
author
Ben Pfaff
<blp@nicira.com>
Fri, 6 Jun 2014 01:46:23 +0000
(18:46 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 6 Jun 2014 20:55:31 +0000
(13:55 -0700)
recirc_id_pool_create() allocates memory but recirc_id_pool_destroy() did
not destroy it.
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
ofproto/ofproto-dpif-rid.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-dpif-rid.c
b/ofproto/ofproto-dpif-rid.c
index
9e7e9a3
..
b3d98eb
100644
(file)
--- 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