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:
2fbf137
)
netdev-bsd: Fix memory leak on error path.
author
Ben Pfaff
<blp@nicira.com>
Thu, 25 Jul 2013 21:03:32 +0000
(14:03 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 8 Aug 2013 06:40:30 +0000
(23:40 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
CC: Ed Maste <emaste@freebsd.org>
lib/netdev-bsd.c
patch
|
blob
|
history
diff --git
a/lib/netdev-bsd.c
b/lib/netdev-bsd.c
index
401d03a
..
8605182
100644
(file)
--- a/
lib/netdev-bsd.c
+++ b/
lib/netdev-bsd.c
@@
-323,6
+323,7
@@
netdev_bsd_create_system(const struct netdev_class *class, const char *name,
/* Verify that the netdev really exists by attempting to read its flags */
error = netdev_get_flags(&netdev->up, &flags);
if (error == ENXIO) {
+ free(netdev->kernel_name);
netdev_uninit(&netdev->up, false);
free(netdev);
cache_notifier_unref();