git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89cbe2d
)
ofproto: Don't leak descriptions when destroying an ofproto
author
Justin Pettit
<jpettit@nicira.com>
Fri, 22 Jan 2010 22:01:16 +0000
(14:01 -0800)
committer
Justin Pettit
<jpettit@nicira.com>
Sat, 23 Jan 2010 02:08:07 +0000
(18:08 -0800)
Reported-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
c1cbf8f
..
d172cc7
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-745,6
+745,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);
}