From: Ben Pfaff Date: Tue, 7 Jun 2011 20:19:24 +0000 (-0700) Subject: ofproto: Fix memory leak in ofproto_destroy__(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=955a7127749e6e6e45b3e1a4d396a62e66d563f3;p=openvswitch ofproto: Fix memory leak in ofproto_destroy__(). --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 5ab4d3a8..c6d91430 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);