git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b11ba24
)
s3: Fix Coverity ID 741407 -- resource leak
author
Volker Lendecke
<vl@samba.org>
Sun, 25 Nov 2012 09:19:23 +0000
(10:19 +0100)
committer
Michael Adam
<obnox@samba.org>
Mon, 26 Nov 2012 18:20:05 +0000
(19:20 +0100)
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Nov 26 19:20:05 CET 2012 on sn-devel-104
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 7fcb9c4c96afcf897f5fe52d33ee5667c70d1644..2063a583105ad3caa31272737b3260348c6e9b51 100644
(file)
--- a/
source3/lib/util_sock.c
+++ b/
source3/lib/util_sock.c
@@
-853,6
+853,7
@@
int open_udp_socket(const char *host, int port)
salen = sizeof(struct sockaddr_in);
} else {
DEBUG(1, ("unknown socket family %d", ss.ss_family));
+ close(res);
return -1;
}