From 3176ee2632ddfc6a1fb6f7f3e255cd369c1f0907 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 25 Aug 2009 17:02:53 +0200 Subject: [PATCH] Do an early TALLOC_FREE --- source3/libads/dns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/libads/dns.c b/source3/libads/dns.c index 5cf768de672..0797eb1156f 100644 --- a/source3/libads/dns.c +++ b/source3/libads/dns.c @@ -985,7 +985,7 @@ NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx, /*_ldap._tcp.DomainGuid.domains._msdcs.DnsForestName */ const char *domains; - const char *guid_string; + char *guid_string; guid_string = GUID_string(ctx, domain_guid); if (!guid_string) { @@ -997,6 +997,7 @@ NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx, if (!domains) { return NT_STATUS_NO_MEMORY; } + TALLOC_FREE(guid_string); return ads_dns_query_internal(ctx, "_ldap", domains, dns_forest_name, NULL, dclist, numdcs); -- 2.11.4.GIT