[PULL 02/27] savevm: Fix memory leak of vmstate_configuration

2021-02-08 Thread Dr. David Alan Gilbert (git)
From: Jinhao Gao When VM migrate VMState of configuration, the fields(name and capabilities) of configuration having a flag of VMS_ALLOC need to allocate memory. If the src doesn't free memory of capabilities in SaveState after save VMState of configuration, or the dst doesn't free memory of name

[PULL 02/27] savevm: Fix memory leak of vmstate_configuration

2021-02-04 Thread Dr. David Alan Gilbert (git)
From: Jinhao Gao When VM migrate VMState of configuration, the fields(name and capabilities) of configuration having a flag of VMS_ALLOC need to allocate memory. If the src doesn't free memory of capabilities in SaveState after save VMState of configuration, or the dst doesn't free memory of name