]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/amigaone: Free allocated struct
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 22 Oct 2025 21:07:47 +0000 (23:07 +0200)
committerHarsh Prateek Bora <harshpb@linux.ibm.com>
Thu, 23 Oct 2025 12:07:34 +0000 (17:37 +0530)
commit32a027f9404aee9c9c57a41abcea5dde5bf5e518
tree811ad4bd3c12c59479b014a3653a9e4fbaeed593
parent448b5be6253fb17d90f61902a75806d917ad4f78
ppc/amigaone: Free allocated struct

In create_bd_info function a bd_info struct is allocated but never
freed. Mark it g_autofree to avoid leaking it.

Fixes: 34f053d86b (ppc/amigaone: Add kernel and initrd support)
Resolves: Coverity CID 1641398
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20251022211649.9A09E5972E5@zero.eik.bme.hu
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
hw/ppc/amigaone.c