A racing car sprayed gas as it rushed to the finish line amid cheers from the crowd around it.