diff options
author | Chris Leech <cleech@redhat.com> | 2019-10-31 15:22:02 -0700 |
---|---|---|
committer | Chris Leech <cleech@redhat.com> | 2019-10-31 15:48:08 -0700 |
commit | 860187423092ba43112f4c2d303978dda7254c58 (patch) | |
tree | e948248cef7f4355b504b6988bc7ec74dd9353b5 /iscsiuio | |
parent | af48f0d68db48cd492d0e27e046fc011be236fd3 (diff) | |
download | open-iscsi-860187423092ba43112f4c2d303978dda7254c58.tar.gz |
Resource leak: Variable raw going out of scope leaks the storage it points to.
Diffstat (limited to 'iscsiuio')
-rw-r--r-- | iscsiuio/src/unix/nic_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iscsiuio/src/unix/nic_utils.c b/iscsiuio/src/unix/nic_utils.c index aad679e..84ffc5c 100644 --- a/iscsiuio/src/unix/nic_utils.c +++ b/iscsiuio/src/unix/nic_utils.c @@ -245,6 +245,7 @@ int nic_discover_iscsi_hosts() "space for NIC %s " "during scan", raw); + free(raw); rc = -ENOMEM; break; } |