Re: [PATCH v3 11/26] vnc: Plug minor memory leak in vnc_display_open()

2020-06-30 Thread Daniel P . Berrangé
On Tue, Jun 30, 2020 at 11:03:36AM +0200, Markus Armbruster wrote: > vnc_display_print_local_addr() leaks the Error object when > qio_channel_socket_get_local_address() fails. Seems unlikely. Called > when we create a VNC display with vnc_display_open(). Plug the leak > by passing NULL to ignore

[PATCH v3 11/26] vnc: Plug minor memory leak in vnc_display_open()

2020-06-30 Thread Markus Armbruster
vnc_display_print_local_addr() leaks the Error object when qio_channel_socket_get_local_address() fails. Seems unlikely. Called when we create a VNC display with vnc_display_open(). Plug the leak by passing NULL to ignore the error. Cc: Daniel P. Berrange Cc: Gerd Hoffmann Signed-off-by: Mark