mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
slirp: Cleanup resources on instance removal
Close & free sockets when shutting down a slirp instance, also release all buffers. CC: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
f373431977
commit
a68adc2206
10 changed files with 58 additions and 0 deletions
|
|
@ -246,6 +246,9 @@ void slirp_cleanup(Slirp *slirp)
|
|||
|
||||
unregister_savevm(NULL, "slirp", slirp);
|
||||
|
||||
ip_cleanup(slirp);
|
||||
m_cleanup(slirp);
|
||||
|
||||
g_free(slirp->tftp_prefix);
|
||||
g_free(slirp->bootp_filename);
|
||||
g_free(slirp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue