From: Ján Tomko Date: Mon, 6 May 2013 12:36:23 +0000 (+0200) Subject: iscsi: don't leak portal string when starting a pool X-Git-Tag: v1.0.5.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4f45888ce4b2c669eab21e62e251a562342de51;p=thirdparty%2Flibvirt.git iscsi: don't leak portal string when starting a pool (cherry picked from commit 413274f63b8f2da3b1a4adfdf1cbc0df7a0e0316) --- diff --git a/src/storage/storage_backend_iscsi.c b/src/storage/storage_backend_iscsi.c index f6b76ed496..fbf5b14d24 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; }