summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-08-13 13:42:04 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-13 13:49:44 +0200
commit813bdf466d1e0262c7b4bdf98343451db08c60f6 (patch)
treee5f51ab38093cb0addbf3b4d35125cb8b663d400
parent070b970a9d0b4c490d652eb1c5aa5fb23cc7b6a6 (diff)
downloadsamba-813bdf466d1e0262c7b4bdf98343451db08c60f6.tar.gz
samba-813bdf466d1e0262c7b4bdf98343451db08c60f6.tar.bz2
samba-813bdf466d1e0262c7b4bdf98343451db08c60f6.zip
ldb: Remove use after free in error case
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Aug 13 13:49:44 CEST 2011 on sn-devel-104
-rw-r--r--lib/ldb/ldb_tdb/ldb_tdb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c
index d111e01118..f07a9d2ae7 100644
--- a/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -1511,7 +1511,6 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url,
if (ltdb_cache_load(module) != 0) {
talloc_free(module);
- talloc_free(ltdb);
return LDB_ERR_OPERATIONS_ERROR;
}