summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-25 17:02:53 +0200
committerVolker Lendecke <vl@samba.org>2009-08-25 17:38:31 +0200
commit3176ee2632ddfc6a1fb6f7f3e255cd369c1f0907 (patch)
tree6fecf91ccdfaf9ca9f32119415172dd882a7a045 /source3/libads
parentd896fb2dabaca650130ad6cea59eb3a66879470f (diff)
downloadsamba-3176ee2632ddfc6a1fb6f7f3e255cd369c1f0907.tar.gz
samba-3176ee2632ddfc6a1fb6f7f3e255cd369c1f0907.tar.bz2
samba-3176ee2632ddfc6a1fb6f7f3e255cd369c1f0907.zip
Do an early TALLOC_FREE
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/dns.c b/source3/libads/dns.c
index 5cf768de67..0797eb1156 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);