From: Andrew Tridgell Date: Wed, 1 Jul 2009 04:06:38 +0000 (+1000) Subject: use py_talloc_reference instead of py_talloc_import X-Git-Tag: talloc-2.0.0~843 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=269b16212a65c9506147db381ecdcbdd58347af6;p=thirdparty%2Fsamba.git 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 --- diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c index 8786ab67bb6..979182c6782 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)