From: Jesse Gross Date: Tue, 30 Mar 2010 22:40:01 +0000 (-0400) Subject: netdev-linux: Don't free a member of a struct. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658797c83a9b656493c8911026f12a5397cbd5ba;p=openvswitch 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. --- diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 1b69a20d..833f6054 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