summaryrefslogtreecommitdiff
path: root/source3/profile
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-08-16 10:51:44 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-17 14:28:51 +0200
commit6ca5ba5272cc6ff5fbada1b9a801ccc16861eb0e (patch)
tree0a4cbeb09c1a4e986e53442c0316b0eef7bcddd5 /source3/profile
parentc2ea10077715fb2a554a9f39b2ff49338bd8a124 (diff)
downloadsamba-6ca5ba5272cc6ff5fbada1b9a801ccc16861eb0e.tar.gz
lib: Pass mem_ctx to cache_path()
Fix a confusing API: Many places TALLOC_FREE the path where it's not clear you have to do it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Aug 17 14:28:51 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/profile')
-rw-r--r--source3/profile/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c
index 833c9c4425d..5deef81b6df 100644
--- a/source3/profile/profile.c
+++ b/source3/profile/profile.c
@@ -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;
}