]> git.proxmox.com Git - mirror_qemu.git/commitdiff
microvm: add missing g_free() call
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Nov 2021 13:07:17 +0000 (14:07 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 22 Nov 2021 10:14:28 +0000 (11:14 +0100)
Fixes: CID 1465240
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211108130718.840216-2-kraxel@redhat.com>

hw/i386/microvm-dt.c

index 6ee6c42904d217fa7c2e2c2a0fd9e3b0fcc6b28a..a6a59a6e12cdd3278e9b71abff5f5cabf139caad 100644 (file)
@@ -143,6 +143,8 @@ static void dt_add_pcie(MicrovmMachineState *mms)
     nr_pcie_buses = PCIE_ECAM_SIZE / PCIE_MMCFG_SIZE_MIN;
     qemu_fdt_setprop_cells(mms->fdt, nodename, "bus-range", 0,
                            nr_pcie_buses - 1);
+
+    g_free(nodename);
 }
 
 static void dt_add_ioapic(MicrovmMachineState *mms, SysBusDevice *dev)