From d3c689fc5c80431b7e72150f72465b3d255a6f02 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Sep 2013 08:57:59 +0200 Subject: lib: Use "mem_ctx" arg in gencache_get Signed-off-by: Volker Lendecke Signed-off-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Sep 5 20:09:21 CEST 2013 on sn-devel-104 --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 37f11c78ee..89938e4b9f 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -631,16 +631,16 @@ static WERROR set_printer_hnd_name(TALLOC_CTX *mem_ctx, cache_key = talloc_asprintf(talloc_tos(), "PRINTERNAME/%s", aprinter); if ((cache_key != NULL) && - gencache_get(cache_key, NULL, &tmp, NULL)) { + gencache_get(cache_key, talloc_tos(), &tmp, NULL)) { found = (strcmp(tmp, printer_not_found) != 0); if (!found) { DEBUG(4, ("Printer %s not found\n", aprinter)); - SAFE_FREE(tmp); + TALLOC_FREE(tmp); return WERR_INVALID_PRINTER_NAME; } fstrcpy(sname, tmp); - SAFE_FREE(tmp); + TALLOC_FREE(tmp); } /* Search all sharenames first as this is easier than pulling -- cgit