From bd4718d2812f5f59d890be0284642ab78c3f1bc2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 20 Jan 2009 14:34:14 +0100 Subject: Make use of TALLOC_FREE --- source3/rpc_server/srv_pipe_hnd.c | 4 +--- 1 file changed, 1 insertion(+), 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 ); -- cgit