From 2f06192523633939c2df87e05c3f97655455da27 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 15 Jan 2009 23:31:17 +0100 Subject: s3:vfs_acl_tdb: don't leak state_path() to talloc_tos() in acl_tdb_init() Michael --- source3/modules/vfs_acl_tdb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c index a7969814bf..be28b5f0d8 100644 --- a/source3/modules/vfs_acl_tdb.c +++ b/source3/modules/vfs_acl_tdb.c @@ -61,10 +61,12 @@ static bool acl_tdb_init(struct db_context **pp_db) #else errno = ENOSYS; #endif + TALLOC_FREE(dbname); return false; } ref_count++; + TALLOC_FREE(dbname); return true; } -- cgit