diff options
author | Jeremy Allison <jra@samba.org> | 2001-12-21 19:34:32 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-12-21 19:34:32 +0000 |
commit | fff44cc7009da6db0cc6478e0e239324316b4550 (patch) | |
tree | f5067cd8d89339555ea46e472e85218609b84e81 | |
parent | bead5bf57c3ca20d6c3e19bbbd39235ae2cc6250 (diff) | |
download | samba-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.c | 2 |
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); } |