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; }