This is one of the few cases where we want the object to be owned by
both the python object and C code
PyObject *PyLoadparmService_FromService(struct loadparm_service *service)
{
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)
}
static PyObject *py_lp_ctx_get_helper(struct loadparm_context *lp_ctx, const char *service_name, const char *param_name)