the functions idmap_ad_sids_to_unixids and idmap_ad_unixids_to_sids call ads_pull_string which tallocs the returned char * This call is inside a for loop but talloc_free is not called on the value. Is this a potential memory leak or am I missing something here. I must admit I really don't fully understand the talloc subsystem.