summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-07-15 16:46:20 +0000
committerVolker Lendecke <vlendec@samba.org>2003-07-15 16:46:20 +0000
commit6770d69942a8841fb25448a8a238af7987ec860c (patch)
treed7bb039f846c161445f070baf37e1224af86d50a /source/lib
parent46ec022f873416d2258fc8d84430b17319dce70f (diff)
downloadsamba-6770d69942a8841fb25448a8a238af7987ec860c.tar.gz
samba-6770d69942a8841fb25448a8a238af7987ec860c.tar.xz
samba-6770d69942a8841fb25448a8a238af7987ec860c.zip
Fix memleak
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/smbldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lib/smbldap.c b/source/lib/smbldap.c
index 21e3383acdc..39c1990decb 100644
--- a/source/lib/smbldap.c
+++ b/source/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 );
}