of v1
- Address Michael's comment (free memory before load vmsd centrally)
- Add David's Acked-by and Michael's Signed-off-by
v3
- Add Euler's Reported-by and Michael's Reviewed-by
Jinhao Gao (3):
spapr_pci: Fix memory leak of vmstate_spapr_pci
savevm: Fix memory
pabilities in post
load of configuration, it may result in memory leak of name and capabilities.
We free memory in configuration_post_save and configuration_post_load func,
which prevents memory leak.
Reported-by: Euler Robot
Signed-off-by: Jinhao Gao
Reviewed-by: Michael S. Tsirkin
---
migratio
Some memory allocated for fields having a flag of VMS_ALLOC in SaveState
may not free before VM load vmsd in migration. So we pre-free memory before
allocation in vmstate_handle_alloc() to avoid memleaks.
Reported-by: Euler Robot
Signed-off-by: Jinhao Gao
Signed-off-by: Michael S. Tsirkin
d the
post_save func to free memory, which prevents memory leak.
Reported-by: Euler Robot
Signed-off-by: Jinhao Gao
Acked-by: David Gibson
Reviewed-by: Michael S. Tsirkin
---
hw/ppc/spapr_pci.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c