summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_pipe_hnd.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-08 07:30:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:06 -0500
commit77709e58add9d716d70941908258bcd2f83e17fa (patch)
tree84d5197995789ac40274286bb21a010f16fcdec6 /source3/rpc_server/srv_pipe_hnd.c
parent8f0bdb9c4ede5e953904cfc528c57886f9de2bdb (diff)
downloadsamba-77709e58add9d716d70941908258bcd2f83e17fa.tar.gz
samba-77709e58add9d716d70941908258bcd2f83e17fa.tar.bz2
samba-77709e58add9d716d70941908258bcd2f83e17fa.zip
r14031: Coverity bug CID #110. Free all resources correctly
on pipe initialization failure. Jeremy. (This used to be commit daa919a94b3d81401654004bc0f32c45451203c1)
Diffstat (limited to 'source3/rpc_server/srv_pipe_hnd.c')
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c2
1 files changed, 2 insertions, 0 deletions
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;
}