lib: Pass mem_ctx to lock_path()
[garming/samba-autobuild/.git] / source3 / printing / printer_list.c
index 9b20dc19ade6541f9e406f4e0104c62b8af37076..0e479072a229f4b152e8a87ba31fe4f33cf42be0 100644 (file)
@@ -39,7 +39,7 @@ static struct db_context *get_printer_list_db(void)
                return db;
        }
 
-       db_path = lock_path("printer_list.tdb");
+       db_path = lock_path(talloc_tos(), "printer_list.tdb");
        if (db_path == NULL) {
                return NULL;
        }