diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2023-04-12 19:51:01 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-04-13 10:09:31 +0100 |
commit | 69d4e746b3a899b90d2cbf422a3ce764cf51cfbe (patch) | |
tree | 2267c4b15cdb9de85ed00309b77e4d7805bbb343 /replication.c | |
parent | 9d177b7f87d96d1ed8fd16e222a37bd1ac8a0cd8 (diff) | |
download | qemu-69d4e746b3a899b90d2cbf422a3ce764cf51cfbe.zip qemu-69d4e746b3a899b90d2cbf422a3ce764cf51cfbe.tar.gz qemu-69d4e746b3a899b90d2cbf422a3ce764cf51cfbe.tar.bz2 |
hw/xen: Fix double-free in xen_console store_con_info()
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 <dwmw@amazon.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'replication.c')
0 files changed, 0 insertions, 0 deletions