lib: Pass mem_ctx to cache_path()
[bbaumbach/samba-autobuild/.git] / source3 / profile / profile.c
index 833c9c4425de4d1caf57f5b942a51b2002cf6ef5..5deef81b6df15dad6206511bfd0dda545e38aad8 100644 (file)
@@ -129,7 +129,7 @@ bool profile_setup(struct messaging_context *msg_ctx, bool rdonly)
                return true;
        }
 
-       db_name = cache_path("smbprofile.tdb");
+       db_name = cache_path(talloc_tos(), "smbprofile.tdb");
        if (db_name == NULL) {
                return false;
        }