ofproto: Fix memory leak in ofproto_destroy__().
authorBen Pfaff <blp@nicira.com>
Tue, 7 Jun 2011 20:19:24 +0000 (13:19 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 7 Jun 2011 20:21:26 +0000 (13:21 -0700)
ofproto/ofproto.c

index 5ab4d3a82097e40adb2a1607649093734bf98cd7..c6d9143041a303cc6f783f2bb80f18f614576ef6 100644 (file)
@@ -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);