[FIX] prevent 64/30164/1
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Wed, 12 Nov 2014 08:36:38 +0000 (11:36 +0300)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Wed, 12 Nov 2014 08:36:38 +0000 (11:36 +0300)
|-------------------------|------------------------|
| Type                    | Function               |
|-------------------------|------------------------|
| fd leak                 |initialize_log          |
|-------------------------|------------------------|

Change-Id: I104279bdc850725e2077bd55159001ad88d465f0
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_debug.c

index 8ce2452..782410c 100644 (file)
@@ -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);