diff options
author | Vitaliy Cherepanov <v.cherepanov@samsung.com> | 2014-11-12 11:36:38 +0300 |
---|---|---|
committer | Vitaliy Cherepanov <v.cherepanov@samsung.com> | 2014-11-12 11:36:38 +0300 |
commit | 20eb2c44fa695224712f9f59781756ec62ef3317 (patch) | |
tree | 2c855ac76343bd68a4d43f2f0db0d1ea2d6f8c1f | |
parent | aa0677154d76c386df595ab9f22e9700bf5fc880 (diff) | |
download | swap-manager-20eb2c44fa695224712f9f59781756ec62ef3317.tar.gz swap-manager-20eb2c44fa695224712f9f59781756ec62ef3317.tar.bz2 swap-manager-20eb2c44fa695224712f9f59781756ec62ef3317.zip |
[FIX] prevent
|-------------------------|------------------------|
| Type | Function |
|-------------------------|------------------------|
| fd leak |initialize_log |
|-------------------------|------------------------|
Change-Id: I104279bdc850725e2077bd55159001ad88d465f0
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
-rw-r--r-- | daemon/da_debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/da_debug.c b/daemon/da_debug.c index 8ce2452..782410c 100644 --- a/daemon/da_debug.c +++ b/daemon/da_debug.c @@ -104,10 +104,10 @@ int initialize_log(void) close(2); } - if (fd_null == -1) + if (fd_null != -1) close(fd_null); - if (fd == -1) + if (fd != -1) close(fd); close(0); |