On 12/04/2023 19:51, David Woodhouse wrote:
From: David Woodhouse <d...@amazon.co.uk>

Coverity spotted a double-free (CID 1508254); we g_string_free(path) and
then for some reason immediately call free(path) too.

We should just use g_autoptr() for it anyway, which simplifies the code
a bit.

Fixes: 7a8a749da7d3 ("hw/xen: Move xenstore_store_pv_console_info to 
xen_console.c")
Signed-off-by: David Woodhouse <d...@amazon.co.uk>
---
  hw/char/xen_console.c | 13 +++----------
  1 file changed, 3 insertions(+), 10 deletions(-)


Reviewed-by: Paul Durrant <p...@xen.org>


Reply via email to