summaryrefslogtreecommitdiffstats
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-01 01:17:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:16 -0500
commitfae01b48994fd3168fd921af68dab1b4003adc49 (patch)
treed23f5f35a920315c73a0b9564fafe4962cd1caeb /source3/passdb
parentf15327488985c7bea1ac507a3c76641fca9448ef (diff)
downloadsamba-fae01b48994fd3168fd921af68dab1b4003adc49.tar.gz
samba-fae01b48994fd3168fd921af68dab1b4003adc49.tar.xz
samba-fae01b48994fd3168fd921af68dab1b4003adc49.zip
r21608: Fix a couple of memleaks in error code paths before
Coverity finds them :-) Jeremy. (This used to be commit cbe725f1b09f3d0edbdf823e0862edf21e16d336)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 4edffe97d9f..5fd607a7fce 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -2436,6 +2436,7 @@ static NTSTATUS ldapsam_enum_group_members(struct pdb_methods *methods,
filter = talloc_asprintf_append(filter, "(uid=%s)", escape_memberuid);
if (filter == NULL) {
+ SAFE_FREE(escape_memberuid);
ret = NT_STATUS_NO_MEMORY;
goto done;
}