[libvirt] [PATCH] iscsi: don't leak portal string when starting a pool

Ján Tomko jtomko at redhat.com
Tue May 7 08:02:01 UTC 2013


---
 src/storage/storage_backend_iscsi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/storage/storage_backend_iscsi.c b/src/storage/storage_backend_iscsi.c
index cf25919..3b48f44 100644
--- a/src/storage/storage_backend_iscsi.c
+++ b/src/storage/storage_backend_iscsi.c
@@ -772,6 +772,7 @@ virStorageBackendISCSIStartPool(virConnectPtr conn ATTRIBUTE_UNUSED,
     ret = 0;
 
 cleanup:
+    VIR_FREE(portal);
     VIR_FREE(session);
     return ret;
 }
-- 
1.8.1.5




More information about the libvir-list mailing list