another case that should use py_talloc_reference
authorAndrew Tridgell <tridge@samba.org>
Wed, 1 Jul 2009 04:06:56 +0000 (14:06 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Jul 2009 05:15:37 +0000 (15:15 +1000)
source4/auth/pyauth.c

index e97174fcc3a73f30790f200942cb8cb01abad492..04880b71c93961172f16e53aae8ef706d5de01a8 100644 (file)
@@ -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)