summaryrefslogtreecommitdiff
path: root/source4/dsdb/pydsdb.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2012-05-04 08:51:41 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-08-22 01:31:55 +0200
commit5f8006cb64c6537f3004e91319d071a603e4468e (patch)
tree742a3d1723372ba636ae47e8b42f39f4197ce78f /source4/dsdb/pydsdb.c
parent166a7d37f7bfc7b22163e1d38a0bb0e47c2f6622 (diff)
downloadsamba-5f8006cb64c6537f3004e91319d071a603e4468e.tar.gz
samba-5f8006cb64c6537f3004e91319d071a603e4468e.tar.bz2
samba-5f8006cb64c6537f3004e91319d071a603e4468e.zip
s4:dsdb_sort_objectClass_attr - simplify memory context handling
Do only require the out memory context and build the temporary one in the body of the function. This greatly simplifies the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/pydsdb.c')
-rw-r--r--source4/dsdb/pydsdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c
index 39229f487f..99e239e60c 100644
--- a/source4/dsdb/pydsdb.c
+++ b/source4/dsdb/pydsdb.c
@@ -681,8 +681,7 @@ static PyObject *py_dsdb_normalise_attributes(PyObject *self, PyObject *args)
/* Normalise "objectClass" attribute if needed */
if (ldb_attr_cmp(a->lDAPDisplayName, "objectClass") == 0) {
int iret;
- iret = dsdb_sort_objectClass_attr(ldb, schema, tmp_ctx, el,
- tmp_ctx, el);
+ iret = dsdb_sort_objectClass_attr(ldb, schema, el, tmp_ctx, el);
if (iret != LDB_SUCCESS) {
PyErr_SetString(PyExc_RuntimeError, ldb_errstring(ldb));
talloc_free(tmp_ctx);