summaryrefslogtreecommitdiff
path: root/lib/netdev-linux.c
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-03-30 18:40:01 -0400
committerJesse Gross <jesse@nicira.com>2010-04-19 09:11:57 -0400
commit658797c83a9b656493c8911026f12a5397cbd5ba (patch)
treee913b867ce2b6d2256752d26c2b2b83cca4ca6f1 /lib/netdev-linux.c
parent15b3596a4105bbea82108ac251f9b19dc316e19d (diff)
downloadopenvswitch-658797c83a9b656493c8911026f12a5397cbd5ba.tar.gz
netdev-linux: Don't free a member of a struct.
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.
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r--lib/netdev-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 1b69a20d6..833f60544 100644
--- 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