From c7c3b98d4b7b28ffcfa6ab26128f769555d5c03a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 8 Mar 2006 06:32:21 +0000 Subject: r14017: Okay, okay, I have turned a double-free into dead code :-) Fix Coverity # 214. Volker (This used to be commit 4a75edf9deca2be18670d7f9f2e383ed0898512c) --- source3/libads/ads_ldap.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source3/libads') 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; } -- cgit