summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPan Nengyuan2020-05-08 12:07:55 +0200
committerDr. David Alan Gilbert2020-06-01 19:44:27 +0200
commit2f0c285aaac5fdc4c5c2f8e03fa8c11e679c50c4 (patch)
tree1f5496b4a47f111b75b77b74b6a81cce91189cb3 /include
parentmigration/rdma: fix potential nullptr access in rdma_start_incoming_migration (diff)
downloadqemu-2f0c285aaac5fdc4c5c2f8e03fa8c11e679c50c4.tar.gz
qemu-2f0c285aaac5fdc4c5c2f8e03fa8c11e679c50c4.tar.xz
qemu-2f0c285aaac5fdc4c5c2f8e03fa8c11e679c50c4.zip
migration/rdma: cleanup rdma context before g_free to avoid memleaks
When error happen in initializing 'rdma_return_path', we should cleanup rdma context before g_free(rdma) to avoid some memleaks. This patch fix that. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com> Message-Id: <20200508100755.7875-3-pannengyuan@huawei.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions