aboutsummaryrefslogtreecommitdiff
path: root/monitor/trace-events
diff options
context:
space:
mode:
authorJinhao Gao <gaojinhao@huawei.com>2020-12-31 14:10:19 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2021-02-08 11:19:51 +0000
commit39f633d429f249db4f5d2eff7f56381517c7531e (patch)
treec151fbd63d84a27799447d212c0cdbf6fef125f8 /monitor/trace-events
parente6ddad1fd53e6e4d65726e41c7063900a69ab694 (diff)
savevm: Fix memory leak of vmstate_configuration
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 and capabilities 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 <euler.robot@huawei.com> Signed-off-by: Jinhao Gao <gaojinhao@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20201231061020.828-3-gaojinhao@huawei.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'monitor/trace-events')
0 files changed, 0 insertions, 0 deletions