Skip to content
Snippets Groups Projects
  1. Feb 27, 2023
    • Thomas Huth's avatar
      qemu-keymap: Silence memory leak warning from Clang's sanitizer · 5c70adbf
      Thomas Huth authored
      
      When compiling QEMU with "--enable-sanitizers --enable-xkbcommon --cc=clang"
      there is a memory leak warning when running qemu-keymap:
      
       $ ./qemu-keymap -f pc-bios/keymaps/de -l de
      
       =================================================================
       ==610321==ERROR: LeakSanitizer: detected memory leaks
      
       Direct leak of 136 byte(s) in 1 object(s) allocated from:
           #0 0x5642830d0820 in __interceptor_calloc.part.11 asan_malloc_linux.cpp.o
           #1 0x7f31873b8d2b in xkb_state_new (/lib64/libxkbcommon.so.0+0x1dd2b) (BuildId: dd32581e2248833243f3f646324ae9b98469f025)
      
       SUMMARY: AddressSanitizer: 136 byte(s) leaked in 1 allocation(s).
      
      It can be silenced by properly releasing the "state" again
      after it has been used.
      
      Message-Id: <20230221122440.612281-1-thuth@redhat.com>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      5c70adbf
  2. Dec 17, 2021
  3. Jun 12, 2019
    • Markus Armbruster's avatar
      Include qemu-common.h exactly where needed · a8d25326
      Markus Armbruster authored
      
      No header includes qemu-common.h after this commit, as prescribed by
      qemu-common.h's file comment.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-5-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
      block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
      target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
      target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
      target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
      target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
      net/tap-bsd.c fixed up]
      a8d25326
  4. Aug 24, 2018
  5. Feb 09, 2018
  6. Oct 16, 2017
Loading