1. 16 1月, 2018 4 次提交
    • M
      tests: fix migration-test leak · 890241ab
      Marc-André Lureau 提交于
      Direct leak of 12 byte(s) in 2 object(s) allocated from:
          #0 0x7f50d403c850 in malloc (/lib64/libasan.so.4+0xde850)
          #1 0x7f50d1ddf98f in vasprintf (/lib64/libc.so.6+0x8098f)
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20180104160523.22995-12-marcandre.lureau@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      890241ab
    • M
      readline: add a free function · e5dc1a6c
      Marc-André Lureau 提交于
      Fixes leaks such as:
      
      Direct leak of 2 byte(s) in 1 object(s) allocated from:
          #0 0x7eff58beb850 in malloc (/lib64/libasan.so.4+0xde850)
          #1 0x7eff57942f0c in g_malloc ../glib/gmem.c:94
          #2 0x7eff579431cf in g_malloc_n ../glib/gmem.c:331
          #3 0x7eff5795f6eb in g_strdup ../glib/gstrfuncs.c:363
          #4 0x55db720f1d46 in readline_hist_add /home/elmarco/src/qq/util/readline.c:258
          #5 0x55db720f2d34 in readline_handle_byte /home/elmarco/src/qq/util/readline.c:387
          #6 0x55db71539d00 in monitor_read /home/elmarco/src/qq/monitor.c:3896
          #7 0x55db71f9be35 in qemu_chr_be_write_impl /home/elmarco/src/qq/chardev/char.c:167
          #8 0x55db71f9bed3 in qemu_chr_be_write /home/elmarco/src/qq/chardev/char.c:179
          #9 0x55db71fa013c in fd_chr_read /home/elmarco/src/qq/chardev/char-fd.c:66
          #10 0x55db71fe18a8 in qio_channel_fd_source_dispatch /home/elmarco/src/qq/io/channel-watch.c:84
          #11 0x7eff5793a90b in g_main_dispatch ../glib/gmain.c:3182
          #12 0x7eff5793b7ac in g_main_context_dispatch ../glib/gmain.c:3847
          #13 0x55db720af3bd in glib_pollfds_poll /home/elmarco/src/qq/util/main-loop.c:214
          #14 0x55db720af505 in os_host_main_loop_wait /home/elmarco/src/qq/util/main-loop.c:261
          #15 0x55db720af6d6 in main_loop_wait /home/elmarco/src/qq/util/main-loop.c:515
          #16 0x55db7184e0de in main_loop /home/elmarco/src/qq/vl.c:1995
          #17 0x55db7185e956 in main /home/elmarco/src/qq/vl.c:4914
          #18 0x7eff4ea17039 in __libc_start_main (/lib64/libc.so.6+0x21039)
      
      (while at it, use g_new0(ReadLineState), it's a bit easier to read)
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20180104160523.22995-11-marcandre.lureau@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e5dc1a6c
    • M
      vl: fix direct firmware directories leak · 35471127
      Marc-André Lureau 提交于
      Note that data_dir[] will now point to allocated strings.
      
      Fixes:
      Direct leak of 16 byte(s) in 1 object(s) allocated from:
          #0 0x7f1448181850 in malloc (/lib64/libasan.so.4+0xde850)
          #1 0x7f1446ed8f0c in g_malloc ../glib/gmem.c:94
          #2 0x7f1446ed91cf in g_malloc_n ../glib/gmem.c:331
          #3 0x7f1446ef739a in g_strsplit ../glib/gstrfuncs.c:2364
          #4 0x55cf276439d7 in main /home/elmarco/src/qq/vl.c:4311
          #5 0x7f143dfad039 in __libc_start_main (/lib64/libc.so.6+0x21039)
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <20180104160523.22995-10-marcandre.lureau@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      35471127
    • M
      tests: fix check-qobject leak · 87c258cd
      Marc-André Lureau 提交于
      /public/qobject_is_equal_conversion: OK
      
      =================================================================
      ==14396==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x7f07682c5850 in malloc (/lib64/libasan.so.4+0xde850)
          #1 0x7f0767d12f0c in g_malloc ../glib/gmem.c:94
          #2 0x7f0767d131cf in g_malloc_n ../glib/gmem.c:331
          #3 0x562bd767371f in do_test_equality /home/elmarco/src/qq/tests/check-qobject.c:49
          #4 0x562bd7674a35 in qobject_is_equal_dict_test /home/elmarco/src/qq/tests/check-qobject.c:267
          #5 0x7f0767d37b04 in test_case_run ../glib/gtestutils.c:2237
          #6 0x7f0767d37ec4 in g_test_run_suite_internal ../glib/gtestutils.c:2321
          #7 0x7f0767d37f6d in g_test_run_suite_internal ../glib/gtestutils.c:2333
          #8 0x7f0767d38184 in g_test_run_suite ../glib/gtestutils.c:2408
          #9 0x7f0767d36e0d in g_test_run ../glib/gtestutils.c:1674
          #10 0x562bd7674e75 in main /home/elmarco/src/qq/tests/check-qobject.c:327
          #11 0x7f0766009039 in __libc_start_main (/lib64/libc.so.6+0x21039)
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20180104160523.22995-9-marcandre.lureau@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      87c258cd
  2. 12 1月, 2018 14 次提交
  3. 11 1月, 2018 22 次提交