From 48a71664f21f50616749b467e6f082b6c20036a1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 27 Jul 2011 16:30:42 -0400 Subject: s3-rpc_server: remove useless code We do not reuse pies_struct so there is no reason to SERO_STRUCT() it when we are freeing it as we are done using it anyways. --- source3/rpc_server/rpc_handles.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/rpc_handles.c b/source3/rpc_server/rpc_handles.c index 2b35328e62..19e7655221 100644 --- a/source3/rpc_server/rpc_handles.c +++ b/source3/rpc_server/rpc_handles.c @@ -131,12 +131,10 @@ int close_internal_rpc_pipe_hnd(struct pipes_struct *p) /* Free the handles database. */ close_policy_by_pipe(p); - free_pipe_rpc_context_internal( p->contexts ); + free_pipe_rpc_context_internal(p->contexts); DLIST_REMOVE(InternalPipes, p); - ZERO_STRUCTP(p); - return 0; } -- cgit