r5585: LDB interfaces change:
[kai/samba-autobuild/.git] / source4 / lib / ldb / common / ldb.c
index 0fb371011f7f0b2288e7281f11d0cfdeaf9b64a8..40616c59636c28464f64038b1e66ffb8986e6bd1 100644 (file)
@@ -69,7 +69,7 @@ struct ldb_context *ldb_connect(const char *url, unsigned int flags,
        }
 
        if (ldb_load_modules(ldb_ctx, options) != 0) {
-               ldb_close(ldb_ctx);
+               talloc_free(ldb_ctx);
                errno = EINVAL;
                return NULL;
        }
@@ -77,15 +77,6 @@ struct ldb_context *ldb_connect(const char *url, unsigned int flags,
        return ldb_ctx;
 }
 
-/*
-  close the connection to the database
-*/
-int ldb_close(struct ldb_context *ldb)
-{
-       return ldb->modules->ops->close(ldb->modules);
-}
-
-
 /*
   search the database given a LDAP-like search expression