projects
/
platform
/
core
/
system
/
dlog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5f061
)
svace:remove fd leak
94/122694/1
accepted/tizen_common
accepted/tizen_ivi
accepted/tizen_mobile
accepted/tizen_tv
accepted/tizen_wearable
accepted/tizen/common/20170404.142540
accepted/tizen/ivi/20170403.131050
accepted/tizen/mobile/20170403.131039
accepted/tizen/tv/20170403.131035
accepted/tizen/unified/20170403.131057
accepted/tizen/wearable/20170403.131047
submit/tizen/20170403.072619
author
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Mon, 3 Apr 2017 07:11:01 +0000
(16:11 +0900)
committer
sanghyeok oh
<sanghyeok.oh@samsung.com>
Mon, 3 Apr 2017 07:11:50 +0000
(
00:11
-0700)
Change-Id: I11b1711c59eec97c3f867946618cd37c8f9b4785
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/logutil/logutil.c
patch
|
blob
|
history
diff --git
a/src/logutil/logutil.c
b/src/logutil/logutil.c
index
4752bd3
..
b8d0f17
100644
(file)
--- a/
src/logutil/logutil.c
+++ b/
src/logutil/logutil.c
@@
-148,6
+148,7
@@
static int connect_sock(const char * path)
if (strlen(path) + 1 > sizeof(sa.sun_path)) {
printf("Error: socket path is too long!\n");
+ close(fd);
return -ENAMETOOLONG;
}
strncpy(sa.sun_path, path, sizeof(sa.sun_path));