qemu/hw
Stefan Weil 80cba1b71e hw/9pfs: Fix potential memory leak and avoid reuse of freed memory
The leak was reported by cppcheck.

Function proxy_init also calls g_free for ctx->fs_root.
Avoid reuse of this memory by setting ctx->fs_root to NULL.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2013-07-27 11:22:54 +04:00
..
9pfs hw/9pfs: Fix potential memory leak and avoid reuse of freed memory 2013-07-27 11:22:54 +04:00
acpi acpi/piix4: QOM parent field cleanup 2013-07-23 00:37:33 +02:00
alpha target-alpha: Move alarm to vm_clock 2013-07-18 06:44:55 -07:00
arm hw/arm: Use 'load_ramdisk()' for loading ramdisks w/ U-Boot header 2013-07-22 12:01:37 +01:00
audio hw/a*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
block pflash_cfi02: Use QOM realize for pflash_cfi02 2013-07-23 00:37:35 +02:00
bt sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
char char/cadence_uart: Fix reset for unattached instances 2013-07-15 12:28:07 +01:00
core hw/loader: Support ramdisk with u-boot header 2013-07-22 12:00:56 +01:00
cpu hw/cpu/a15mpcore: Correct default value for num-irq 2013-07-15 16:17:02 +01:00
cris memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
display display/vmware_vga: QOM parent field cleanup 2013-07-23 00:37:34 +02:00
dma hw/dma/omap_dma: Fix bugs with DMA requests above 32 2013-07-15 16:17:44 +01:00
gpio hw/gpio: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
i2c hw: Avoid use of QOM type name macros in VMStateDescriptions 2013-07-23 00:37:32 +02:00
i386 QOM CPUState refactorings 2013-07-23 10:57:04 -05:00
ide ahci: Use QOM realize for ahci 2013-07-23 00:37:35 +02:00
input hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
intc ioapic: Use QOM realize for ioapic 2013-07-23 00:37:35 +02:00
isa isa_mmio: delete 2013-07-25 08:12:27 -05:00
lm32 memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
m68k memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
microblaze microblaze: Fix latent bug with default DTB lookup 2013-07-09 13:38:58 -05:00
mips mips: degrade BIOS error to warning 2013-07-25 08:12:27 -05:00
misc pc-testdev: add I/O port to test memory.c auto split/combine 2013-07-25 08:12:28 -05:00
moxie memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
net net/pcnet-pci: QOM Upcast Sweep 2013-07-23 00:37:33 +02:00
nvram fw_cfg: Use QOM realize for fw_cfg 2013-07-23 00:37:35 +02:00
openrisc hw/openrisc: Use stderr output instead of qemu_log 2013-07-23 18:31:24 +08:00
pci scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() 2013-07-23 00:37:35 +02:00
pci-bridge pci,net,pc enhancements 2013-07-18 08:12:47 -05:00
pci-host sparc64: unbreak 2013-07-25 08:12:28 -05:00
ppc ppc440_bamboo: do not use isa_mmio 2013-07-25 08:12:27 -05:00
s390x virtio-ccw: Enable x-data-plane for virtio-ccw-blk 2013-07-15 17:39:04 +02:00
scsi scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() 2013-07-23 00:37:35 +02:00
sd sd/pl181.c: Avoid undefined shift behaviour in RWORD macro 2013-07-15 16:17:30 +01:00
sh4 sh4: unbreak r2d 2013-07-25 08:12:27 -05:00
sparc sun4m: add display width and height to the firmware configuration 2013-07-26 16:56:50 -05:00
sparc64 ebus: do not use isa_mmio 2013-07-25 08:12:27 -05:00
ssi hw/s*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
timer hpet: Use QOM realize for hpet 2013-07-23 00:37:35 +02:00
tpm hw/t*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
unicore32 memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
usb scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() 2013-07-23 00:37:35 +02:00
virtio arm-devs queue 2013-07-22 10:14:24 -05:00
watchdog hw/[u-x]*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
xen xen/xen_platform: QOM parent field cleanup 2013-07-23 00:37:34 +02:00
xtensa cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook 2013-07-23 02:41:33 +02:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00