summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}