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:
4fbb1fd
)
ofproto: Fix memory leak in ofproto_destroy().
author
Ben Pfaff
<blp@nicira.com>
Fri, 6 Jun 2014 00:43:46 +0000
(17:43 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 6 Jun 2014 20:57:38 +0000
(13:57 -0700)
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
be66b04
..
29becbc
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-1228,6
+1228,9
@@
ofproto_destroy__(struct ofproto *ofproto)
hmap_destroy(&ofproto->deletions);
+ ovs_assert(hindex_is_empty(&ofproto->cookies));
+ hindex_destroy(&ofproto->cookies);
+
free(ofproto->vlan_bitmap);
ofproto->ofproto_class->dealloc(ofproto);