diff options
author | Stefano Dong (董兴水) <opensource.dxs@aliyun.com> | 2015-11-26 12:00:12 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-11-26 14:27:52 +0200 |
commit | 903a41d3415960240cb3b9f1d66f3707b27010d6 (patch) | |
tree | 23329c048e919074e221a02d7126be1f8ea703d0 /hw/ppc/spapr.c | |
parent | 449e3578107799817a81249b189f6f82aa9e787d (diff) | |
download | qemu-903a41d3415960240cb3b9f1d66f3707b27010d6.tar.gz qemu-903a41d3415960240cb3b9f1d66f3707b27010d6.tar.bz2 qemu-903a41d3415960240cb3b9f1d66f3707b27010d6.zip |
Fix memory leak on error
hw/ppc/spapr.c: Fix memory leak on error, it was introduced in bc09e0611
hw/acpi/memory_hotplug.c: Fix memory leak on error, it was introduced in 34f2af3d
Signed-off-by: Stefano Dong (董兴水) <opensource.dxs@aliyun.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/ppc/spapr.c')
-rw-r--r-- | hw/ppc/spapr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 030ee3554a..3bb8bcda4f 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -125,6 +125,7 @@ static XICSState *xics_system_init(MachineState *machine, error_report("kernel_irqchip requested but unavailable: %s", error_get_pretty(err)); } + error_free(err); } if (!icp) { |