summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-09-10 14:09:08 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-10 17:38:31 +0200
commit891792b7e2939f017245c6c579261ff6679cd0e9 (patch)
tree4ab5c9ff3b543bac98856bc214984395d2dfde43
parent0dbb30a5a32cb2f2ad013f831836ae06876c2fd8 (diff)
downloadsssd-891792b7e2939f017245c6c579261ff6679cd0e9.tar.gz
sssd-891792b7e2939f017245c6c579261ff6679cd0e9.tar.xz
sssd-891792b7e2939f017245c6c579261ff6679cd0e9.zip
is_dn(): free dn
-rw-r--r--src/providers/ldap/sdap_async_netgroups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_netgroups.c b/src/providers/ldap/sdap_async_netgroups.c
index 265fcf0ea..81e53c842 100644
--- a/src/providers/ldap/sdap_async_netgroups.c
+++ b/src/providers/ldap/sdap_async_netgroups.c
@@ -33,6 +33,8 @@ bool is_dn(const char *str)
LDAPDN dn;
ret = ldap_str2dn(str, &dn, LDAP_DN_FORMAT_LDAPV3);
+ ldap_dnfree(dn);
+
return (ret == LDAP_SUCCESS ? true : false);
}