summaryrefslogtreecommitdiff
path: root/source3/libads/ads_ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads/ads_ldap.c')
-rw-r--r--source3/libads/ads_ldap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/libads/ads_ldap.c b/source3/libads/ads_ldap.c
index 841bee6a1e..42821496c3 100644
--- a/source3/libads/ads_ldap.c
+++ b/source3/libads/ads_ldap.c
@@ -83,8 +83,6 @@ ADS_STATUS ads_sid_to_dn(ADS_STRUCT *ads,
*dn = talloc_strdup(mem_ctx, dn2);
if (!*dn) {
- ads_memfree(ads, dn2);
- dn2 = NULL;
rc = ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
goto done;
}