summaryrefslogtreecommitdiff
path: root/src/providers
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:37:26 +0200
commit114c1ed8ec72b43f04527b4f3b4f0940c1fb2c54 (patch)
treec2bb876f96b020f98f0c65b7b1b8465b1b913cea /src/providers
parentc1f94194a9fee8582a0af3b151b4f2b14fa1019a (diff)
downloadsssd-114c1ed8ec72b43f04527b4f3b4f0940c1fb2c54.tar.gz
sssd-114c1ed8ec72b43f04527b4f3b4f0940c1fb2c54.tar.bz2
sssd-114c1ed8ec72b43f04527b4f3b4f0940c1fb2c54.zip
is_dn(): free dn
Diffstat (limited to 'src/providers')
-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 265fcf0e..81e53c84 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);
}