summaryrefslogtreecommitdiff
path: root/source3/intl
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/intl
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/intl')
-rw-r--r--source3/intl/lang_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c
index ecdfe1dc911..2e050fd96de 100644
--- a/source3/intl/lang_tdb.c
+++ b/source3/intl/lang_tdb.c
@@ -149,7 +149,7 @@ bool lang_tdb_init(const char *lang)
goto done;
}
- lpath = lock_path("lang_");
+ lpath = lock_path(talloc_tos(), "lang_");
if (lpath == NULL) {
goto done;
}