lib: Pass mem_ctx to cache_path()
[sfrench/samba-autobuild/.git] / source3 / libgpo / gpext / registry.c
index 5d51bdff6e9af782b85257d7b644d1220758c516..525493fcb2cb385cf3a09ceb006840a3046ea63e 100644 (file)
@@ -291,7 +291,7 @@ static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx,
        size_t num_entries = 0;
        char *unix_path = NULL;
        const struct GROUP_POLICY_OBJECT *gpo;
-       char *gpo_cache_path = cache_path(GPO_CACHE_DIR);
+       char *gpo_cache_path = cache_path(talloc_tos(), GPO_CACHE_DIR);
        if (gpo_cache_path == NULL) {
                return NT_STATUS_NO_MEMORY;
        }