summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-07-01 14:06:38 +1000
committerAndrew Tridgell <tridge@samba.org>2009-07-01 15:15:37 +1000
commit269b16212a65c9506147db381ecdcbdd58347af6 (patch)
tree188e13848ff5dc32f69425be19b8d262f75c92b7 /source4/param
parent12510329217dd2b8027794b63258a34797a0f940 (diff)
downloadsamba-269b16212a65c9506147db381ecdcbdd58347af6.tar.gz
samba-269b16212a65c9506147db381ecdcbdd58347af6.tar.bz2
samba-269b16212a65c9506147db381ecdcbdd58347af6.zip
use py_talloc_reference instead of py_talloc_import
This is one of the few cases where we want the object to be owned by both the python object and C code
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/pyparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index 8786ab67bb..979182c678 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -43,7 +43,7 @@ PyAPI_DATA(PyTypeObject) PyLoadparmService;
PyObject *PyLoadparmService_FromService(struct loadparm_service *service)
{
- return py_talloc_import(&PyLoadparmService, service);
+ return py_talloc_reference(&PyLoadparmService, service);
}
static PyObject *py_lp_ctx_get_helper(struct loadparm_context *lp_ctx, const char *service_name, const char *param_name)