From d61831164b482d02e0eef3c28aeed93d3e44433f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Jan 2008 18:48:04 -0800 Subject: Fix CID 460 - resource leak on error. Jeremy. --- source/auth/auth_server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/auth') diff --git a/source/auth/auth_server.c b/source/auth/auth_server.c index 9f90ef8ccd2..095f0b9fb83 100644 --- a/source/auth/auth_server.c +++ b/source/auth/auth_server.c @@ -75,6 +75,7 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx) connection (tridge) */ if (!grab_server_mutex(desthost)) { + cli_shutdown(cli); return NULL; } -- cgit