diff options
| author | Isaku Yamahata | 2013-08-04 04:54:54 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2013-08-05 18:47:47 +0200 |
| commit | e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1 (patch) | |
| tree | e9185e107bb28700704234b0f7c0f60802e714a4 | |
| parent | rdma: use RDMA_WRID_READY (diff) | |
| download | qemu-e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1.tar.gz qemu-e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1.tar.xz qemu-e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1.zip | |
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>
| -rw-r--r-- | migration-rdma.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |
