1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Only run free_private_data when it's specified (reported by Steve Langasek aka vorlon)

(This used to be commit 9efa98b4a65a38df922ce3b83f5fde631cb70844)
This commit is contained in:
Jelmer Vernooij 2002-10-25 00:36:28 +00:00
parent af09297cbc
commit 5b90fdc6bb

View File

@ -354,7 +354,8 @@ static void free_pdb_context(struct pdb_context **context)
struct pdb_methods *pdb_selected = (*context)->pdb_methods;
while (pdb_selected){
pdb_selected->free_private_data(&(pdb_selected->private_data));
if(pdb_selected->free_private_data)
pdb_selected->free_private_data(&(pdb_selected->private_data));
pdb_selected = pdb_selected->next;
}