diff options
-rw-r--r-- | hw/net/xen_nic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/xen_nic.c b/hw/net/xen_nic.c index 8eaa77b62d..19ecfc4ccf 100644 --- a/hw/net/xen_nic.c +++ b/hw/net/xen_nic.c @@ -428,6 +428,7 @@ static int net_free(struct XenDevice *xendev) netdev->nic = NULL; } g_free(netdev->mac); + netdev->mac = NULL; return 0; } |