summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
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/printing/printing.c
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/printing/printing.c')
-rw-r--r--source3/printing/printing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 0acbb7e28ce..efdd6870999 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -204,7 +204,7 @@ bool print_backend_init(struct messaging_context *msg_ctx)
return false;
}
- print_cache_path = cache_path("printing");
+ print_cache_path = cache_path(talloc_tos(), "printing");
if (print_cache_path == NULL) {
return false;
}
@@ -214,7 +214,7 @@ bool print_backend_init(struct messaging_context *msg_ctx)
return false;
}
- print_cache_path = cache_path("printing.tdb");
+ print_cache_path = cache_path(talloc_tos(), "printing.tdb");
if (print_cache_path == NULL) {
return false;
}