Re: [Qemu-devel] [PATCH 2/3] spapr: fix leak in h_client_architecture_support()

2018-06-12 Thread David Gibson
On Tue, Jun 12, 2018 at 07:01:26PM +0200, Greg Kurz wrote: > If the negotiated compat mode can't be set, but raw mode is supported, > we decide to ignore the error. An so, we should free it to prevent a > memory leak. > > Signed-off-by: Greg Kurz Applied to ppc-for-3.0, thanks. > --- > hw/ppc/

Re: [Qemu-devel] [PATCH 2/3] spapr: fix leak in h_client_architecture_support()

2018-06-12 Thread Philippe Mathieu-Daudé
On 06/12/2018 02:01 PM, Greg Kurz wrote: > If the negotiated compat mode can't be set, but raw mode is supported, > we decide to ignore the error. An so, we should free it to prevent a > memory leak. > > Signed-off-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé > --- > hw/ppc/spapr_hcall.c