summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-21 19:34:32 +0000
committerJeremy Allison <jra@samba.org>2001-12-21 19:34:32 +0000
commitfff44cc7009da6db0cc6478e0e239324316b4550 (patch)
treef5067cd8d89339555ea46e472e85218609b84e81
parentbead5bf57c3ca20d6c3e19bbbd39235ae2cc6250 (diff)
downloadsamba-fff44cc7009da6db0cc6478e0e239324316b4550.tar.gz
samba-fff44cc7009da6db0cc6478e0e239324316b4550.tar.bz2
samba-fff44cc7009da6db0cc6478e0e239324316b4550.zip
Use pdb_free_sam() to free a SAM_ACCOUNT struct, not safe_free(). There
are pointers withing the SAM_ACCOUNT struct that also need freeing. Jeremy. (This used to be commit a7d099cc75f813b4010a5f313c3fa6e6e8284b6d)
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 1cd061369f..c3d4f826d4 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -75,7 +75,7 @@ static void free_samr_info(void *ptr)
if (info->disp_info.user_dbloaded){
for (i=0; i<info->disp_info.num_account; i++)
- SAFE_FREE(info->disp_info.disp_user_info[i].sam);
+ pdb_free_sam(&info->disp_info.disp_user_info[i].sam);
SAFE_FREE(info->disp_info.disp_user_info);
}