From 77709e58add9d716d70941908258bcd2f83e17fa Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 Mar 2006 07:30:37 +0000 Subject: r14031: Coverity bug CID #110. Free all resources correctly on pipe initialization failure. Jeremy. (This used to be commit daa919a94b3d81401654004bc0f32c45451203c1) --- source3/rpc_server/srv_pipe_hnd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/rpc_server/srv_pipe_hnd.c') diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index f7467f2cf0..0d07db2be3 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -330,6 +330,8 @@ static void *make_internal_rpc_pipe_p(char *pipe_name, DEBUG(0,("open_rpc_pipe_p: malloc fail for in_data struct.\n")); talloc_destroy(p->mem_ctx); talloc_destroy(p->pipe_state_mem_ctx); + close_policy_by_pipe(p); + SAFE_FREE(p); return NULL; } -- cgit