diff options
author | Volker Lendecke <vl@samba.org> | 2018-08-16 10:51:44 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-17 14:28:51 +0200 |
commit | 6ca5ba5272cc6ff5fbada1b9a801ccc16861eb0e (patch) | |
tree | 0a4cbeb09c1a4e986e53442c0316b0eef7bcddd5 /source3/nmbd | |
parent | c2ea10077715fb2a554a9f39b2ff49338bd8a124 (diff) | |
download | samba-6ca5ba5272cc6ff5fbada1b9a801ccc16861eb0e.tar.gz |
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 <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Aug 17 14:28:51 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd_serverlistdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_serverlistdb.c b/source3/nmbd/nmbd_serverlistdb.c index 05dcb6c7482..ad251833ed5 100644 --- a/source3/nmbd/nmbd_serverlistdb.c +++ b/source3/nmbd/nmbd_serverlistdb.c @@ -300,7 +300,7 @@ void write_browse_list(time_t t, bool force_write) updatecount++; - fname = cache_path(SERVER_LIST); + fname = cache_path(talloc_tos(), SERVER_LIST); if (!fname) { return; } |