summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 7d1f824234..e574f0387d 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -883,9 +883,7 @@ static int close_internal_rpc_pipe_hnd(struct pipes_struct *p)
(*p->auth.auth_data_free_func)(&p->auth);
}
- if (p->mem_ctx) {
- talloc_destroy(p->mem_ctx);
- }
+ TALLOC_FREE(p->mem_ctx);
free_pipe_rpc_context( p->contexts );