summaryrefslogtreecommitdiff
path: root/libgpo/pygpo.c
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 14:28:51 +0200
commit6ca5ba5272cc6ff5fbada1b9a801ccc16861eb0e (patch)
tree0a4cbeb09c1a4e986e53442c0316b0eef7bcddd5 /libgpo/pygpo.c
parentc2ea10077715fb2a554a9f39b2ff49338bd8a124 (diff)
downloadsamba-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 'libgpo/pygpo.c')
-rw-r--r--libgpo/pygpo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpo/pygpo.c b/libgpo/pygpo.c
index 88486424917..cd107318860 100644
--- a/libgpo/pygpo.c
+++ b/libgpo/pygpo.c
@@ -93,7 +93,7 @@ static PyObject *py_gpo_get_unix_path(PyObject *self, PyObject *args,
}
if (!cache_dir) {
- cache_dir = cache_path(GPO_CACHE_DIR);
+ cache_dir = cache_path(talloc_tos(), GPO_CACHE_DIR);
if (!cache_dir) {
PyErr_SetString(PyExc_MemoryError,
"Failed to determine gpo cache dir");