[ovs-dev] [leaks 3/5] ofproto: Fix memory leak in ofproto_destroy__().

Ben Pfaff blp at nicira.com
Tue Jun 7 20:22:25 UTC 2011


---
 ofproto/ofproto.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 5ab4d3a..c6d9143 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -581,6 +581,7 @@ ofproto_destroy__(struct ofproto *ofproto)
 
     hmap_remove(&all_ofprotos, &ofproto->hmap_node);
     free(ofproto->name);
+    free(ofproto->type);
     free(ofproto->mfr_desc);
     free(ofproto->hw_desc);
     free(ofproto->sw_desc);
-- 
1.7.4.4




More information about the dev mailing list