diff --git a/migration-rdma.c b/migration-rdma.c index 83c9a0b761..3a380d411a 100644 --- a/migration-rdma.c +++ b/migration-rdma.c @@ -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; }