diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-01-01 18:30:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:01 -0500 |
commit | 3c50ec20fb992283c0131a4399d60a93d0097a41 (patch) | |
tree | 1da5c79c710f6b4ec34c0d0ab421850959f75ee0 /source3/passdb/pdb_ldap.c | |
parent | 1c77c6f7cac6f8de184642d3706459763e858884 (diff) | |
download | samba-3c50ec20fb992283c0131a4399d60a93d0097a41.tar.gz samba-3c50ec20fb992283c0131a4399d60a93d0097a41.tar.bz2 samba-3c50ec20fb992283c0131a4399d60a93d0097a41.zip |
r12663: Fix a memleak
(This used to be commit 3ee6b732f4210e6de6716364ec166f44f29f4463)
Diffstat (limited to 'source3/passdb/pdb_ldap.c')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 0bf051eecd..b35ce18eee 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3638,6 +3638,10 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods, goto done; } + if (msg != NULL) { + ldap_msgfree(msg); + } + /* Same game for groups */ { |