mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 19:18:23 +00:00
net: del hub port when peer is deleted
We should del hub port when peer is deleted since it will not be reused and will only be freed during exit. Signed-off-by: Jason Wang <jasowang@redhat.com> Message-id: 1422860798-17495-3-git-send-email-jasowang@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
07636d5399
commit
64a55d6066
@@ -996,6 +996,8 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict)
|
|||||||
error_report("invalid host network device '%s'", device);
|
error_report("invalid host network device '%s'", device);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qemu_del_net_client(nc->peer);
|
||||||
qemu_del_net_client(nc);
|
qemu_del_net_client(nc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user