]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
iscsi: don't leak portal string when starting a pool
authorJán Tomko <jtomko@redhat.com>
Mon, 6 May 2013 12:36:23 +0000 (14:36 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 9 May 2013 13:55:37 +0000 (15:55 +0200)
(cherry picked from commit 413274f63b8f2da3b1a4adfdf1cbc0df7a0e0316)

src/storage/storage_backend_iscsi.c

index f374961a4cfa2ee2c4889bc3fabc195d6480b513..f476ee19155db6964cf11a89bea47275bb884876 100644 (file)
@@ -735,6 +735,7 @@ virStorageBackendISCSIStartPool(virConnectPtr conn ATTRIBUTE_UNUSED,
     ret = 0;
 
 cleanup:
+    VIR_FREE(portal);
     VIR_FREE(session);
     return ret;
 }