From: Volker Lendecke Date: Tue, 20 Jan 2009 13:34:14 +0000 (+0100) Subject: Make use of TALLOC_FREE X-Git-Tag: samba-4.0.0alpha7~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd4718d2812f5f59d890be0284642ab78c3f1bc2;p=thirdparty%2Fsamba.git Make use of TALLOC_FREE --- diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 7d1f8242342..e574f0387dd 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 );