projects
/
platform
/
core
/
connectivity
/
inm-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
888d3a4
)
Fix resource leak
17/216317/2
accepted/tizen_5.5_unified_mobile_hotfix
tizen_5.5_mobile_hotfix
accepted/tizen/5.5/unified/20191031.024501
accepted/tizen/5.5/unified/mobile/hotfix/20201027.084349
accepted/tizen/unified/20191023.142700
submit/tizen/20191023.181928
submit/tizen_5.5/20191031.000003
submit/tizen_5.5_mobile_hotfix/20201026.185103
tizen_5.5.m2_release
author
Cheoleun Moon
<chleun.moon@samsung.com>
Wed, 23 Oct 2019 18:11:09 +0000
(
03:11
+0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Wed, 23 Oct 2019 18:13:12 +0000
(
03:13
+0900)
Change-Id: I5a7e62a5f68a385cfa350f3e8b9aed36bfb37d81
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Coverity:
1053584
src/inm-net-access.c
patch
|
blob
|
history
diff --git
a/src/inm-net-access.c
b/src/inm-net-access.c
index acd163cf9413d7dc6178e233dcba8af02fa82d26..488e3065797f303d1425ca8498107990da321ded 100644
(file)
--- a/
src/inm-net-access.c
+++ b/
src/inm-net-access.c
@@
-439,8
+439,10
@@
static void __connect_sockets(void)
/* Register Watch */
ret = inm_util_create_gio_channel(sock, &channel);
- if (ret != 0)
+ if (ret != 0) {
+ close(sock);
goto cleanup;
+ }
if (connect(sock, (struct sockaddr *)&addr,
sizeof(struct sockaddr_in)) < 0) {