[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 05/15] spapr: Free stdout path
From: |
Akihiko Odaki |
Subject: |
[PATCH v2 05/15] spapr: Free stdout path |
Date: |
Thu, 27 Jun 2024 22:37:48 +0900 |
This fixes LeakSanitizer warnings.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/ppc/spapr_vof.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/spapr_vof.c b/hw/ppc/spapr_vof.c
index 09f29be0b9de..c02eaacfed0b 100644
--- a/hw/ppc/spapr_vof.c
+++ b/hw/ppc/spapr_vof.c
@@ -28,7 +28,7 @@ target_ulong spapr_h_vof_client(PowerPCCPU *cpu,
SpaprMachineState *spapr,
void spapr_vof_client_dt_finalize(SpaprMachineState *spapr, void *fdt)
{
- char *stdout_path = spapr_vio_stdout_path(spapr->vio_bus);
+ g_autofree char *stdout_path = spapr_vio_stdout_path(spapr->vio_bus);
vof_build_dt(fdt, spapr->vof);
--
2.45.2
- Re: [PATCH v2 01/15] cpu: Free cpu_ases, (continued)
- [PATCH v2 05/15] spapr: Free stdout path,
Akihiko Odaki <=
- [PATCH v2 06/15] ppc/vof: Fix unaligned FDT property access, Akihiko Odaki, 2024/06/27
- [PATCH v2 07/15] hw/virtio: Free vqs after vhost_dev_cleanup(), Akihiko Odaki, 2024/06/27
- [PATCH v2 08/15] migration: Free removed SaveStateEntry, Akihiko Odaki, 2024/06/27
- [PATCH v2 09/15] memory: Do not create circular reference with subregion, Akihiko Odaki, 2024/06/27
- [PATCH v2 10/15] tests/qtest: Use qtest_add_data_func_full(), Akihiko Odaki, 2024/06/27
- [PATCH v2 11/15] tests/qtest: Free unused QMP response, Akihiko Odaki, 2024/06/27
- [PATCH v2 12/15] tests/qtest: Free old machine variable name, Akihiko Odaki, 2024/06/27