vmxnet3: fix NICState cleanup
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 4 Jun 2013 12:47:26 +0000 (14:47 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 11 Jun 2013 23:03:56 +0000 (18:03 -0500)
commit9ca80c7f293345ee8b53306cfdc548df9ece8b13
treec67d638831502bb60e8648f2542399e9bae09d68
parenta548bacfba7c80304b78d74c49c69d877bffe1ef
vmxnet3: fix NICState cleanup

Use qemu_del_nic() instead of qemu_del_net_client() to correctly free
the entire NICState.

Cc: qemu-stable@nongnu.org
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 3ffee3cd5fb29de2115bdcbde0a02f47ce69a24c)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/vmxnet3.c