projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b3596
)
netdev-linux: Don't free a member of a struct.
author
Jesse Gross
<jesse@nicira.com>
Tue, 30 Mar 2010 22:40:01 +0000
(18:40 -0400)
committer
Jesse Gross
<jesse@nicira.com>
Mon, 19 Apr 2010 13:11:57 +0000
(09:11 -0400)
We allocate struct netdev_linux which contains struct netdev but
free the netdev. In practice this makes no difference because the
netdev is the first member of the struct but we should be correct
anyways.
lib/netdev-linux.c
patch
|
blob
|
history
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index 1b69a20d610e236978eb3266f7d9ad8ea56b6c2e..833f605440f98d737f35d6944ae093c3c952811a 100644
(file)
--- a/
lib/netdev-linux.c
+++ b/
lib/netdev-linux.c
@@
-974,7
+974,7
@@
netdev_linux_destroy(struct netdev_dev *netdev_dev_)
destroy_patch(netdev_dev);
}
- free(netdev_dev
_
);
+ free(netdev_dev);
}
static int