[Qemu-devel] [PATCH 0/3] Fix some memory leaks about query memdev

2014-08-01 Thread Chen Fan
when using valgrind to test the command "query memdev", I had found some memory leaks. the test result: ==13802== 4 bytes in 1 blocks are definitely lost in loss record 125 of 8,508 ==13802==at 0x4A08934: malloc (vg_replace_malloc.c:291) ==13802==by 0x4A08AA8: realloc (vg_replace_malloc.c:

[Qemu-devel] [PATCH 0/3] Fix some memory leaks caused by qemu_allocate_irqs

2012-09-24 Thread Stefan Weil
There are several memory leaks in QEMU which are caused by calling qemu_allocate_irqs. Some of these leaks are fixed here in the 2nd and 3rd patch. More can be fixed using the same pattern. The first patch adds a new function which avoids unnecessary memory allocation. [PATCH 1/3] irq: Add new f

[Qemu-devel] [PATCH 0/3] Fix some memory leaks

2012-04-28 Thread Stefan Weil
Valgrind reports lots of memory leaks. Three of them which occur very often are fixed here. [PATCH 1/3] qdev: Fix memory leak in function set_pci_devfn [PATCH 2/3] qom: Fix memory leak in function container_get [PATCH 3/3] hw/pc_sysfw: Fix memory leak Regards, Stefan Weil