s3/service: use lp_const_servicename() where possible
authorDavid Disseldorp <ddiss@samba.org>
Sun, 24 Jun 2018 23:59:33 +0000 (01:59 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 6 Jul 2018 18:37:20 +0000 (20:37 +0200)
commit20a837e87714f329d121f5de96b260ade651419c
treedf42826e462dbe930fa6f9738be89bb094bd9470
parent77be96379bcef56ea580010f1d60fe54e5647ff4
s3/service: use lp_const_servicename() where possible

The majority of these lp_servicename(talloc_tos(), ...) callers leak
onto the talloc stackframe. Drop the unnecessary heap allocations.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/service.c