summaryrefslogtreecommitdiff
path: root/source3/libads/ldap_schema.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-28 11:18:22 +0200
committerVolker Lendecke <vl@samba.org>2009-05-28 11:33:21 +0200
commit0dbecbbee5018108131869b13db649a058f4359d (patch)
treee49b14064ea1f1e27b55f65a9c32ab6a70151fd6 /source3/libads/ldap_schema.c
parent01ea4249da246b0b99a4b89eb36aa6b1c0d46994 (diff)
downloadsamba-0dbecbbee5018108131869b13db649a058f4359d.tar.gz
samba-0dbecbbee5018108131869b13db649a058f4359d.tar.bz2
samba-0dbecbbee5018108131869b13db649a058f4359d.zip
Make sid_binstring & friends take a talloc context
Diffstat (limited to 'source3/libads/ldap_schema.c')
-rw-r--r--source3/libads/ldap_schema.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c
index b5d2d35889..a841fbdca8 100644
--- a/source3/libads/ldap_schema.c
+++ b/source3/libads/ldap_schema.c
@@ -122,7 +122,7 @@ const char *ads_get_attrname_by_guid(ADS_STRUCT *ads,
goto done;
}
- guid_bin = guid_binstring(schema_guid);
+ guid_bin = guid_binstring(mem_ctx, schema_guid);
if (!guid_bin) {
goto done;
}
@@ -145,7 +145,7 @@ const char *ads_get_attrname_by_guid(ADS_STRUCT *ads,
result = ads_pull_string(ads, mem_ctx, res, "lDAPDisplayName");
done:
- SAFE_FREE(guid_bin);
+ TALLOC_FREE(guid_bin);
ads_msgfree(ads, res);
return result;