s3:vfs_acl_tdb: don't leak state_path() to talloc_tos() in acl_tdb_init()
[jra/samba/.git] / source3 / modules / vfs_acl_tdb.c
index a7969814bf420911db0d26857d12cd7dcfa2e968..be28b5f0d896832d20ad3582de8d95978719b60c 100644 (file)
@@ -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;
 }