projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16d9a02
)
[FIX] prevent issue
41/29741/1
author
Vitaliy Cherepanov
<v.cherepanov@samsung.com>
Mon, 3 Nov 2014 15:38:03 +0000
(18:38 +0300)
committer
Vitaliy Cherepanov
<v.cherepanov@samsung.com>
Mon, 3 Nov 2014 15:38:03 +0000
(18:38 +0300)
|-------------------------|----------------|
| Type | Function |
|-------------------------|----------------|
| Resource leak | initialize_log |
| Resource leak | initialize_log |
|-------------------------|----------------|
Change-Id: I174970e06d4472c7ded0b5509846311f36fc099f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_debug.c
patch
|
blob
|
history
diff --git
a/daemon/da_debug.c
b/daemon/da_debug.c
index
74c3dbd
..
45e5ded
100644
(file)
--- a/
daemon/da_debug.c
+++ b/
daemon/da_debug.c
@@
-92,13
+92,13
@@
int initialize_log(void)
LOGE("duplicate fd fail\n");
ret = -1;
}
-
- close(fd);
} else {
close(1);
close(2);
}
+ close(fd_null);
+ close(fd);
close(0);
return ret;
}