diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-07-14 03:21:37 +0200 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-08-08 00:00:11 +0400 |
| commit | 5b498459b441f4639fd4c39c35345637bfc6c16c (patch) | |
| tree | d7e809ac7a979834bafa5dea31bb253da7f8f94e /hw/core/qdev-properties-system.c | |
| parent | 157e94e8a2f7d3e14060d833bd1519a83099eaa9 (diff) | |
| download | focaccia-qemu-5b498459b441f4639fd4c39c35345637bfc6c16c.tar.gz focaccia-qemu-5b498459b441f4639fd4c39c35345637bfc6c16c.zip | |
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/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions