summaryrefslogtreecommitdiff
path: root/source3/nmbd
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 11:30:10 +0200
commitf986a73b240ea61df1d4664b9c3c6d0858b17111 (patch)
tree9fafe8b8d0e76ee5471d6ff883e5f5cc5cffd715 /source3/nmbd
parent0a9273f888d42f4826c41f098bf692b3d977167f (diff)
downloadsamba-f986a73b240ea61df1d4664b9c3c6d0858b17111.tar.gz
lib: Pass mem_ctx to lock_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>
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_namelistdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_namelistdb.c b/source3/nmbd/nmbd_namelistdb.c
index af1f9b743ba..6122fd1dc73 100644
--- a/source3/nmbd/nmbd_namelistdb.c
+++ b/source3/nmbd/nmbd_namelistdb.c
@@ -647,7 +647,7 @@ void dump_all_namelists(void)
struct subnet_record *subrec;
char *dump_path;
- dump_path = lock_path("namelist.debug");
+ dump_path = lock_path(talloc_tos(), "namelist.debug");
if (dump_path == NULL) {
DEBUG(0, ("out of memory!\n"));
return;