diff options
author | Volker Lendecke <vl@samba.org> | 2018-08-16 10:51:44 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-17 11:30:10 +0200 |
commit | f986a73b240ea61df1d4664b9c3c6d0858b17111 (patch) | |
tree | 9fafe8b8d0e76ee5471d6ff883e5f5cc5cffd715 /source3/smbd/smbXsrv_version.c | |
parent | 0a9273f888d42f4826c41f098bf692b3d977167f (diff) | |
download | samba-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/smbd/smbXsrv_version.c')
-rw-r--r-- | source3/smbd/smbXsrv_version.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smbXsrv_version.c b/source3/smbd/smbXsrv_version.c index e318e7de1e0..f2d138d95a0 100644 --- a/source3/smbd/smbXsrv_version.c +++ b/source3/smbd/smbXsrv_version.c @@ -72,7 +72,7 @@ NTSTATUS smbXsrv_version_global_init(const struct server_id *server_id) frame = talloc_stackframe(); - global_path = lock_path("smbXsrv_version_global.tdb"); + global_path = lock_path(talloc_tos(), "smbXsrv_version_global.tdb"); if (global_path == NULL) { TALLOC_FREE(frame); return NT_STATUS_NO_MEMORY; |