summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/pyauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c
index e97174fcc3..04880b71c9 100644
--- a/source4/auth/pyauth.c
+++ b/source4/auth/pyauth.c
@@ -32,7 +32,7 @@ PyTypeObject PyAuthSession = {
PyObject *PyAuthSession_FromSession(struct auth_session_info *session)
{
- return py_talloc_import(&PyAuthSession, session);
+ return py_talloc_reference(&PyAuthSession, session);
}
static PyObject *py_system_session(PyObject *module, PyObject *args)