From 269b16212a65c9506147db381ecdcbdd58347af6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 1 Jul 2009 14:06:38 +1000 Subject: 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 --- source4/param/pyparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/param') 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) -- cgit