diff options
author | Zongmin Zhou <zhouzongmin@kylinos.cn> | 2023-11-20 11:14:28 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-11-30 09:51:24 +0100 |
commit | 41581265aa83127036e4f2d6417820f59276514b (patch) | |
tree | 8751c634f9a69eeb7581c0796b100343aa3117fb /tests/avocado/boot_linux_console.py | |
parent | 0a08c7947b4246b90e2b96df19f04292963f21fc (diff) |
migration: free 'saddr' since be no longer used
Since socket_parse() will allocate memory for 'saddr',and its value
will pass to 'addr' that allocated by migrate_uri_parse(),
then 'saddr' will no longer used,need to free.
But due to 'saddr->u' is shallow copying the contents of the union,
the members of this union containing allocated strings,and will be used after that.
So just free 'saddr' itself without doing a deep free on the contents of the SocketAddress.
Fixes: 72a8192e225c ("migration: convert migration 'uri' into 'MigrateAddress'")
Signed-off-by: Zongmin Zhou<zhouzongmin@kylinos.cn>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231120031428.908295-1-zhouzongmin@kylinos.cn>
Diffstat (limited to 'tests/avocado/boot_linux_console.py')
0 files changed, 0 insertions, 0 deletions