diff options
author | Chris Leech <cleech@redhat.com> | 2019-10-31 15:08:40 -0700 |
---|---|---|
committer | Chris Leech <cleech@redhat.com> | 2019-10-31 15:48:08 -0700 |
commit | 504b990bc886d708ae673ac1fa0e09e7911c2823 (patch) | |
tree | 2a1f55cdf1af6b4f3536ae0385bf188e4bbb4991 /iscsiuio | |
parent | f7d92a5f0a788179bf804dd898d2b5238da5d2d1 (diff) | |
download | open-iscsi-504b990bc886d708ae673ac1fa0e09e7911c2823.tar.gz |
Resource leak: Handle variable fd going out of scope leaks the handle.
Diffstat (limited to 'iscsiuio')
-rw-r--r-- | iscsiuio/src/unix/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iscsiuio/src/unix/main.c b/iscsiuio/src/unix/main.c index 5168e4e..5e3f66c 100644 --- a/iscsiuio/src/unix/main.c +++ b/iscsiuio/src/unix/main.c @@ -196,6 +196,7 @@ static void daemon_init() dup2(fd, 2); setsid(); chdir("/"); + close(fd); } #define ISCSI_OOM_PATH_LEN 48 |