From b47d491489ae6161f0c04378ed15dc1a54a166e1 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. (This used to be commit d61831164b482d02e0eef3c28aeed93d3e44433f) --- source3/auth/auth_server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index 9f90ef8ccd..095f0b9fb8 100644 --- a/source3/auth/auth_server.c +++ b/source3/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