diff options
author | Ben Pfaff <blp@nicira.com> | 2014-06-05 17:43:46 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-06-06 13:57:38 -0700 |
commit | 13db1a79f838cbbafa82c151d112f7a8fd106c06 (patch) | |
tree | 55262573e9bd9a379e74d7af7ecbff46f9c4a363 | |
parent | 4fbb1fd32a72de93fce0d3da06b72ed5568d1b47 (diff) | |
download | openvswitch-13db1a79f838cbbafa82c151d112f7a8fd106c06.tar.gz |
ofproto: Fix memory leak in ofproto_destroy().
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r-- | ofproto/ofproto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index be66b0441..29becbc37 100644 --- 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); |