git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b51edde
)
r14031: Coverity bug CID #110. Free all resources correctly
author
Jeremy Allison
<jra@samba.org>
Wed, 8 Mar 2006 07:30:37 +0000
(07:30 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:11:06 +0000
(11:11 -0500)
on pipe initialization failure.
Jeremy.
source/rpc_server/srv_pipe_hnd.c
patch
|
blob
|
history
diff --git
a/source/rpc_server/srv_pipe_hnd.c
b/source/rpc_server/srv_pipe_hnd.c
index f7467f2cf06d35ed7195d58beba280bd1973da2e..0d07db2be3ed7f077f2e173171e8c4dd0096d5b9 100644
(file)
--- a/
source/rpc_server/srv_pipe_hnd.c
+++ b/
source/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;
}