1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r14031: Coverity bug CID #110. Free all resources correctly

on pipe initialization failure.
Jeremy.
(This used to be commit daa919a94b)
This commit is contained in:
Jeremy Allison 2006-03-08 07:30:37 +00:00 committed by Gerald (Jerry) Carter
parent 8f0bdb9c4e
commit 77709e58ad

View File

@ -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;
}