]> git.proxmox.com Git - mirror_qemu.git/commit
ui/vnc: fix leak of SocketAddress **
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 27 Jul 2017 02:42:11 +0000 (23:42 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 31 Jul 2017 10:06:38 +0000 (13:06 +0300)
commit9f26f3252534e7680cfc7c0dbd1d79fdb56519ad
treeca62c732b407a9385f52ba8ca046dd5a13439194
parentf80ac75d0e6e6e7481d61cdb86e5a741a442f100
ui/vnc: fix leak of SocketAddress **

Extract the (correct) cleaning code as a new function vnc_free_addresses() then
use it to remove the memory leaks.

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/vnc.c