From 2a4b0d76a0701f8895d612918ad77a30a2062263 Mon Sep 17 00:00:00 2001
From: Feng Ni <fengni@huawei.com>
Date: Thu, 25 Jul 2019 15:26:25 +0800
Subject: [PATCH] remote: fix a memory free error

In function remoteDeserializeDomainDiskErrors, there is a typo.

Signed-off-by: Feng Ni <fengni@huawei.com>
---
 src/remote/remote_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index df58b23..ba98212 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -1813,7 +1813,7 @@ remoteDeserializeDomainDiskErrors(remote_domain_disk_error *ret_errors_val,
 
  error:
     for (j = 0; j < i; j++)
-        VIR_FREE(errors[i].disk);
+        VIR_FREE(errors[j].disk);
 
     return -1;
 }
-- 
2.19.1

