From: Andrew Bartlett Date: Sat, 13 Aug 2011 03:42:04 +0000 (+1000) Subject: ldb: Remove use after free in error case X-Git-Tag: samba-4.0.0alpha17~578 X-Git-Url: http://git.samba.org/?p=amitay%2Fsamba.git;a=commitdiff_plain;h=813bdf466d1e0262c7b4bdf98343451db08c60f6;ds=sidebyside ldb: Remove use after free in error case Autobuild-User: Andrew Bartlett Autobuild-Date: Sat Aug 13 13:49:44 CEST 2011 on sn-devel-104 --- diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c index d111e01118f..f07a9d2ae76 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; }