projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362424c
)
netdev: Fix memory leak in netdev_open.
author
Jesse Gross
<jesse@nicira.com>
Mon, 3 Aug 2009 22:19:39 +0000
(15:19 -0700)
committer
Jesse Gross
<jesse@nicira.com>
Wed, 30 Sep 2009 19:42:10 +0000
(12:42 -0700)
The name of the netdev is copied but is never freed.
lib/netdev.c
patch
|
blob
|
history
diff --git
a/lib/netdev.c
b/lib/netdev.c
index 38610e1157073d08e46758246357425251f3a90e..5724f4953b2a245470a2d0d66c3ed78af18f1ad3 100644
(file)
--- a/
lib/netdev.c
+++ b/
lib/netdev.c
@@
-161,6
+161,7
@@
netdev_open(const char *name_, int ethertype, struct netdev **netdevp)
exit:
*netdevp = error ? NULL : netdev;
+ free(name);
return error;
}