summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_lsa_hnd.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-09-17 10:26:23 +0000
committerSimo Sorce <idra@samba.org>2001-09-17 10:26:23 +0000
commit87945989c0383bd012be7ab8bc5920b6d03fa105 (patch)
treec650e6f47153cb7949a090fd73c1400358a943ed /source3/rpc_server/srv_lsa_hnd.c
parente7db47bffba15bd087c90b3831f05d736b8b20e5 (diff)
downloadsamba-87945989c0383bd012be7ab8bc5920b6d03fa105.tar.gz
samba-87945989c0383bd012be7ab8bc5920b6d03fa105.tar.bz2
samba-87945989c0383bd012be7ab8bc5920b6d03fa105.zip
move to SAFE_FREE()
(This used to be commit 5ceecc7bef71b455ba7c4efd9928e2433dccc961)
Diffstat (limited to 'source3/rpc_server/srv_lsa_hnd.c')
-rw-r--r--source3/rpc_server/srv_lsa_hnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c
index 393f50a498..ad726f4cfa 100644
--- a/source3/rpc_server/srv_lsa_hnd.c
+++ b/source3/rpc_server/srv_lsa_hnd.c
@@ -194,7 +194,7 @@ BOOL close_policy_hnd(pipes_struct *p, POLICY_HND *hnd)
ZERO_STRUCTP(pol);
- free(pol);
+ SAFE_FREE(pol);
return True;
}
@@ -217,8 +217,7 @@ void close_policy_by_pipe(pipes_struct *p)
p->pipe_handles->Policy = NULL;
p->pipe_handles->count = 0;
- free(p->pipe_handles);
- p->pipe_handles = NULL;
+ SAFE_FREE(p->pipe_handles);
DEBUG(10,("close_policy_by_pipe: deleted handle list for pipe %s\n", p->name ));
}
}