summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-08 06:32:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:05 -0500
commitc7c3b98d4b7b28ffcfa6ab26128f769555d5c03a (patch)
tree16d67aa9eab3ece12b1c2737fcfd85e17382c11a /source3/libads
parenta3586ff60ccb2c2bd491dd08a67fb0cc22842f7a (diff)
downloadsamba-c7c3b98d4b7b28ffcfa6ab26128f769555d5c03a.tar.gz
samba-c7c3b98d4b7b28ffcfa6ab26128f769555d5c03a.tar.bz2
samba-c7c3b98d4b7b28ffcfa6ab26128f769555d5c03a.zip
r14017: Okay, okay, I have turned a double-free into dead code :-)
Fix Coverity # 214. Volker (This used to be commit 4a75edf9deca2be18670d7f9f2e383ed0898512c)
Diffstat (limited to 'source3/libads')
-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;
}