From 6ca5ba5272cc6ff5fbada1b9a801ccc16861eb0e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 16 Aug 2018 10:51:44 +0200 Subject: 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 Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Aug 17 14:28:51 CEST 2018 on sn-devel-144 --- source3/printing/printing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/printing/printing.c') 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; } -- cgit v1.2.1