From: Justin Pettit Date: Fri, 22 Jan 2010 22:01:16 +0000 (-0800) Subject: ofproto: Don't leak descriptions when destroying an ofproto X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb871ae081413612664aae0e38cc57479e39381d;p=openvswitch ofproto: Don't leak descriptions when destroying an ofproto Reported-by: Ben Pfaff --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 0a3534d0..b962f61b 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -731,6 +731,12 @@ ofproto_destroy(struct ofproto *p) mac_learning_destroy(p->ml); + free(p->manufacturer); + free(p->hardware); + free(p->software); + free(p->serial); + free(p->dp_desc); + free(p); }