samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r19330 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_m

Subject: svn commit: samba r19330 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .
From:
Date: Mon, 16 Oct 2006 11:57:44 +0000 GMT
Author: idra
Date: 2006-10-16 11:57:44 +0000 (Mon, 16 Oct 2006)
New Revision: 19330

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19330

Log:

Fix memleaks


Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c   2006-10-16 
11:23:40 UTC (rev 19329)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c   2006-10-16 
11:57:44 UTC (rev 19330)
@@ -130,7 +130,6 @@
        if (ret != LDB_SUCCESS) {
                return ret;
        }
-       talloc_steal(mem_ctx, res);
        if (res->count != 1) {
                talloc_free(res);
                return LDB_ERR_OPERATIONS_ERROR;
@@ -257,6 +256,7 @@
                ldb_asprintf_errstring(module->ldb,
                                        "samldb_get_new_sid: error retrieving 
domain sid from %s: not found!\n",
                                        ldb_dn_linearize(mem_ctx, dom_dn));
+               talloc_free(res);
                return LDB_ERR_CONSTRAINT_VIOLATION;
        }
 

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r19330 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: ., idra <=