diff options
author | Volker Lendecke <vl@samba.org> | 2018-03-28 07:00:34 -0500 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-03-29 00:21:53 +0200 |
commit | 1b7881ceec755e924c52083188762864d723367c (patch) | |
tree | f3dd6cb4b5fc4ba707e26d1af7d4a5209672d0e8 /source3/libads | |
parent | 9ecc6f3b520ea6388a3b8d9f61cd2bbf16452400 (diff) | |
download | samba-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.c | 1 |
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; } |