mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
rdma: memory leak RDMAContext::host
It is allocated by g_strdup(), so needs to be freed. Reviewed-by: Michael R. Hines <mrhines@us.ibm.com> Signed-off-by: Isaku Yamahata <yamahata@private.email.ne.jp> Signed-off-by: Michael R. Hines <mrhines@us.ibm.com> Message-id: 1375584894-9917-8-git-send-email-mrhines@linux.vnet.ibm.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
877726397f
commit
e1d0fb378a
@ -2097,6 +2097,8 @@ static void qemu_rdma_cleanup(RDMAContext *rdma)
|
||||
rdma_destroy_event_channel(rdma->channel);
|
||||
rdma->channel = NULL;
|
||||
}
|
||||
g_free(rdma->host);
|
||||
rdma->host = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user