Re: [PATCH v2 2/3] savevm: Fix memory leak of vmstate_configuration

2020-12-28 Thread Michael S. Tsirkin
On Mon, Dec 28, 2020 at 05:00:52PM +0800, g00517791 wrote: > 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

[PATCH v2 2/3] savevm: Fix memory leak of vmstate_configuration

2020-12-28 Thread g00517791
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