From fce73d7eff516a981795efa902339cd5bfb19810 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 1 Dec 2010 00:02:53 +0100 Subject: pygensec: Use talloc.Object. --- source4/auth/gensec/pygensec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/auth/gensec/pygensec.c') diff --git a/source4/auth/gensec/pygensec.c b/source4/auth/gensec/pygensec.c index f8825b87d9..229a21bb53 100644 --- a/source4/auth/gensec/pygensec.c +++ b/source4/auth/gensec/pygensec.c @@ -203,13 +203,16 @@ static PyTypeObject Py_Security = { .tp_flags = Py_TPFLAGS_DEFAULT, .tp_methods = py_gensec_security_methods, .tp_basicsize = sizeof(py_talloc_Object), - .tp_dealloc = py_talloc_dealloc, }; void initgensec(void) { PyObject *m; + Py_Security.tp_base = PyTalloc_GetObjectType(); + if (Py_Security.tp_base != NULL) + return; + if (PyType_Ready(&Py_Security) < 0) return; -- cgit