Make use of TALLOC_FREE
authorVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2009 13:34:14 +0000 (14:34 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2009 13:34:51 +0000 (14:34 +0100)
source3/rpc_server/srv_pipe_hnd.c

index 7d1f82423428df31c526ff3274dd40417f276832..e574f0387dd4742ed6398b9cf63fc57064481101 100644 (file)
@@ -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 );