Skip to content

fix various memory leaks (but not all)

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ide: fix leak from qemu_allocate_irqshw/ide/cmd646.c+1 -04 replies
2/8microblaze: fix leak of fdevice tree blobhw/microblaze/boot.c+1 -01 reply
3/8mcf5208: fix leak from qemu_allocate_irqshw/m68k/mcf5208.c+2 -01 reply
4/8hppa: fix leak from g_strdup_printfhw/hppa/dino.c hw/hppa/machine.c+4 -11 reply
5/8mips: fix memory leaks in board initializationhw/mips/mips_int.c hw/mips/mips_jazz.c+3 -01 reply
6/8cris: do not leak struct cris_disasm_datadisas/cris.c+29 -300 replies
7/8lm32: do not leak memory on object_new/object_unrefhw/timer/lm32_timer.c hw/timer/milkymist-sysctl.c+8 -81 reply
8/8docker: test-debug: disable LeakSanitizertests/docker/test-debug+1 -02 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéThomas Huth
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH ci-fix 0/8] fix various memory leaks (but not all)

Hi all, the asan and docker-clang@ubuntu tests are failing due to memory leaks, mostly in instance_init but some also in realize. The former are caught by device-introspect-test, the latter by boot-serial-test.

This series fixes the simplest ones. ARM and aarch64 failures remain so I'm disabling LeakSanitizer tests in CI with the last patch.

Paolo

Paolo Bonzini (8):
ide: fix leak from qemu_allocate_irqs
microblaze: fix leak of fdevice tree blob
mcf5208: fix leak from qemu_allocate_irqs
hppa: fix leak from g_strdup_printf
mips: fix memory leaks in board initialization
cris: do not leak struct cris_disasm_data
lm32: do not leak memory on object_new/object_unref
docker: test-debug: disable LeakSanitizer

 disas/cris.c                | 59 ++++++++++++++++++++++-----------------------
 hw/hppa/dino.c              |  1 +
 hw/hppa/machine.c           |  4 ++-
 hw/ide/cmd646.c             |  1 +
 hw/m68k/mcf5208.c           |  2 ++
 hw/microblaze/boot.c        |  1 +
 hw/mips/mips_int.c          |  1 +
 hw/mips/mips_jazz.c         |  2 ++
 hw/timer/lm32_timer.c       |  6 ++---
 hw/timer/milkymist-sysctl.c | 10 ++++----
 tests/docker/test-debug     |  1 +
 11 files changed, 49 insertions(+), 39 deletions(-)
Signature · 1 line
1.8.3.1