diff options
author | Chris Leech <cleech@redhat.com> | 2019-10-30 12:03:59 -0700 |
---|---|---|
committer | Chris Leech <cleech@redhat.com> | 2019-10-31 15:48:08 -0700 |
commit | 5799a5a711a0347e353cfb61b8ea33eb9d38541e (patch) | |
tree | 180e245e2b84f82bc76e4b485015e75e639307a4 | |
parent | ac8330aa67bdb7c785d2290ba9020272c109c601 (diff) | |
download | open-iscsi-5799a5a711a0347e353cfb61b8ea33eb9d38541e.tar.gz |
Resource leak: Variable startup_cmd going out of scope leaks the storage it point to.
-rw-r--r-- | usr/iscsid_req.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/iscsid_req.c b/usr/iscsid_req.c index b6940db..427e894 100644 --- a/usr/iscsid_req.c +++ b/usr/iscsid_req.c @@ -55,6 +55,8 @@ static void iscsid_startup(void) if (system(startup_cmd) < 0) log_error("Could not execute '%s' (err %d)", startup_cmd, errno); + + free(startup_cmd); } #define MAXSLEEP 128 |