summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/smbldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 21e3383acd..39c1990dec 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -207,8 +207,10 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = {
if ( !list )
return;
- while ( list[i] )
+ while ( list[i] ) {
SAFE_FREE( list[i] );
+ i+=1;
+ }
SAFE_FREE( list );
}