SAN FRANCISCO — The accusations centered on electric car fires, but it was the securities suit against Tesla Motors Inc. that crashed and burned Friday in federal court.

Tesla executives didn’t cover up fire risks posed by batteries in the company’s luxury Model S cars, U.S. District Judge Charles Breyer said, dismissing the complaint without leave to amend. Nor were company statements lauding the cars’ safety false, despite three car fires reported in 2013.