1. 26 1月, 2015 2 次提交
  2. 09 1月, 2015 1 次提交
  3. 08 1月, 2015 1 次提交
  4. 07 1月, 2015 1 次提交
  5. 23 12月, 2014 2 次提交
  6. 22 12月, 2014 1 次提交
  7. 15 12月, 2014 9 次提交
  8. 10 12月, 2014 2 次提交
  9. 26 11月, 2014 1 次提交
  10. 25 11月, 2014 5 次提交
  11. 23 11月, 2014 4 次提交
  12. 14 11月, 2014 1 次提交
  13. 13 11月, 2014 3 次提交
  14. 04 11月, 2014 6 次提交
  15. 02 11月, 2014 1 次提交
    • N
      hw/i386/acpi-build.c: Fix memory leak in acpi_build_tables_cleanup() · ac369a77
      Nikita Belov 提交于
      There are three ACPI tables: 'linker_data', 'rsdp' and 'table_data'. They are
      used differently. Two of them are being copied before using and only the copy
      is used later. But the third is used directly. Because of that we need to free
      two tables completely and delete only wrapper for the third one.
      
      Valgrind output:
      ==23931== 131,072 bytes in 1 blocks are definitely lost in loss record 7,729 of 7,734
      ==23931==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==23931==    by 0x2EA920: realloc_and_trace (vl.c:2811)
      ==23931==    by 0x509E6AE: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
      ==23931==    by 0x506DB32: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
      ==23931==    by 0x506E463: g_array_set_size (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
      ==23931==    by 0x256A4F: acpi_align_size (acpi-build.c:487)
      ==23931==    by 0x259F92: acpi_build (acpi-build.c:1601)
      ==23931==    by 0x25A212: acpi_setup (acpi-build.c:1682)
      ==23931==    by 0x24F346: pc_guest_info_machine_done (pc.c:1110)
      ==23931==    by 0x55FAAB: notifier_list_notify (notify.c:39)
      ==23931==    by 0x2EA704: qemu_run_machine_init_done_notifiers (vl.c:2759)
      ==23931==    by 0x2EEC3C: main (vl.c:4504)
      Signed-off-by: NNikita Belov <zodiac@ispras.ru>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      ac369a77