aboutsummaryrefslogtreecommitdiff
path: root/hw/pci
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-07-14 03:21:37 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2016-08-08 00:00:11 +0400
commit5b498459b441f4639fd4c39c35345637bfc6c16c (patch)
treed7e809ac7a979834bafa5dea31bb253da7f8f94e /hw/pci
parent157e94e8a2f7d3e14060d833bd1519a83099eaa9 (diff)
downloadqemu-5b498459b441f4639fd4c39c35345637bfc6c16c.zip
qemu-5b498459b441f4639fd4c39c35345637bfc6c16c.tar.gz
qemu-5b498459b441f4639fd4c39c35345637bfc6c16c.tar.bz2
char: free the tcp connection data when closing
Make sure the connection data got freed when closing the chardev, to avoid leaks. Introduce tcp_chr_free_connection() to clean all connection related data, and move some tcp_chr_close() clean-ups there. (while at it, set write_msgfds_num to 0 when clearing array in tcp_set_msgfds()) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci')
0 files changed, 0 insertions, 0 deletions