diff options
author | Volker Lendecke <vl@samba.org> | 2012-11-25 10:19:23 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-26 19:20:05 +0100 |
commit | 994eec4d5861c0027b4f863baf095d95ce22c695 (patch) | |
tree | 6421d7a6dc037a42f312c97d96919f5f34e45569 /source3/lib | |
parent | b11ba248837ae9bf1df1c5ae1ca1768d57e582bb (diff) | |
download | samba-994eec4d5861c0027b4f863baf095d95ce22c695.tar.gz samba-994eec4d5861c0027b4f863baf095d95ce22c695.tar.bz2 samba-994eec4d5861c0027b4f863baf095d95ce22c695.zip |
s3: Fix Coverity ID 741407 -- resource leak
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
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 7fcb9c4c96..2063a58310 100644 --- 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; } |