diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-29 18:56:13 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-01-01 03:39:58 +0100 |
commit | 5792fa90ace06f736661d9924ec9a75c3a0a9771 (patch) | |
tree | 189f5bcd84247351d641f758cc914cf99b6af407 /source4/lib/ldb | |
parent | f5fe9c32ef833d3f1ee4b891f46e94382aa182fe (diff) | |
download | samba-5792fa90ace06f736661d9924ec9a75c3a0a9771.tar.gz samba-5792fa90ace06f736661d9924ec9a75c3a0a9771.tar.bz2 samba-5792fa90ace06f736661d9924ec9a75c3a0a9771.zip |
s4-python: Only set BASETYPE flag if subclassing is supported.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/pyldb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 71720d60e0..354e83d8d3 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -8,9 +8,9 @@ Copyright (C) 2007-2010 Jelmer Vernooij <jelmer@samba.org> Copyright (C) 2009-2010 Matthias Dieter Wallnöfer - ** NOTE! The following LGPL license applies to the ldb - ** library. This does NOT imply that all of Samba is released - ** under the LGPL + ** NOTE! The following LGPL license applies to the ldb + ** library. This does NOT imply that all of Samba is released + ** under the LGPL This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -1502,7 +1502,7 @@ static PyObject *PyLdb_FromLdbContext(struct ldb_context *ldb_ctx) static void py_ldb_dealloc(PyLdbObject *self) { talloc_free(self->mem_ctx); - PyObject_Del(self); + self->ob_type->tp_free(self); } PyTypeObject PyLdb = { |