summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-03-28 07:00:34 -0500
committerJeremy Allison <jra@samba.org>2018-03-29 00:21:53 +0200
commit1b7881ceec755e924c52083188762864d723367c (patch)
treef3dd6cb4b5fc4ba707e26d1af7d4a5209672d0e8 /source3/libads
parent9ecc6f3b520ea6388a3b8d9f61cd2bbf16452400 (diff)
downloadsamba-1b7881ceec755e924c52083188762864d723367c.tar.gz
libads: Fix 1433611 Resource leak
Not really a memleak due to the passed-in talloc ctx, but this way it's cleaner Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 78b813c67d0..70166f2f594 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -3471,6 +3471,7 @@ out:
if (name != NULL) {
ok = (strlen(name) > 0);
}
+ TALLOC_FREE(name);
return ok;
}