summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Leech <cleech@redhat.com>2019-10-30 13:50:22 -0700
committerChris Leech <cleech@redhat.com>2019-10-31 15:48:08 -0700
commit020d46c3cb95d627bd1246e6212981cf22adf651 (patch)
tree610d45b4ea9d79c87e5e1aa23afaeb2edeb4e035
parent98738bc389c62cef05bff9e03d5172253ebc82af (diff)
downloadopen-iscsi-020d46c3cb95d627bd1246e6212981cf22adf651.tar.gz
Resource leak: Variable chap_info going out of scope leaks the storage it points to.
-rw-r--r--usr/iscsiadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
index c5749ac..2ce1cf5 100644
--- a/usr/iscsiadm.c
+++ b/usr/iscsiadm.c
@@ -1660,7 +1660,7 @@ static int set_host_chap_info(uint32_t host_no, uint64_t chap_index,
rc = ISCSI_ERR;
}
- goto exit_set_chap;
+ goto free_iovec;
}
ipc->ctldev_close();