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 specified (reported by Steve Langasek aka vorlon)

(This used to be commit ecd3acbfcf912a775718e320c7cb66f60436c546)
This commit is contained in:
Jelmer Vernooij 2002-10-25 00:38:10 +00:00
parent f861aab464
commit 12b1a63ceb

View File

@ -225,7 +225,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;
}