summaryrefslogtreecommitdiff
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
commit032232bd6672853548f3b9fcafc8e42b74e56e53 (patch)
treeebe0427b86691b40fe676c9f57e35e7e1b035467
parent7a88267a6aec077fb602e5ddf02bead1a024c191 (diff)
downloadsamba-032232bd6672853548f3b9fcafc8e42b74e56e53.tar.gz
samba-032232bd6672853548f3b9fcafc8e42b74e56e53.tar.bz2
samba-032232bd6672853548f3b9fcafc8e42b74e56e53.zip
Fix memleak
(This used to be commit 6770d69942a8841fb25448a8a238af7987ec860c)
-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 );
}