ofproto: Don't leak descriptions when destroying an ofproto
authorJustin Pettit <jpettit@nicira.com>
Fri, 22 Jan 2010 22:01:16 +0000 (14:01 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 20 Feb 2010 10:22:29 +0000 (02:22 -0800)
Reported-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c

index 0a3534d0134160db1456ec4f9a296b91b1df0236..b962f61bff6324f9be8631df53ec180445f06167 100644 (file)
@@ -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);
 }