It is allocated by g_strdup(), so needs to be freed. Signed-off-by: Isaku Yamahata <yamah...@private.email.ne.jp> --- migration-rdma.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/migration-rdma.c b/migration-rdma.c index 4828738..2c15d95 100644 --- a/migration-rdma.c +++ b/migration-rdma.c @@ -2092,6 +2092,8 @@ static void qemu_rdma_cleanup(RDMAContext *rdma) rdma_destroy_event_channel(rdma->channel); rdma->channel = NULL; } + g_free(rdma->host); + rdma->host = NULL; } -- 1.7.10.4