From 994eec4d5861c0027b4f863baf095d95ce22c695 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Nov 2012 10:19:23 +0100 Subject: s3: Fix Coverity ID 741407 -- resource leak Reviewed-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Mon Nov 26 19:20:05 CET 2012 on sn-devel-104 --- source3/lib/util_sock.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/lib/util_sock.c') 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; } -- cgit