Leaders in fiction often possess courage. Just like Frodo in 'The Lord of the Rings', he was afraid but still had the courage to carry the One Ring. They also have determination. Look at Katniss in 'The Hunger Games', she was determined to survive and change the system. Another quality is intelligence. Hermione in 'Harry Potter' was very intelligent and used her knowledge to lead her friends in solving problems.
Most leaders in fiction are charismatic. Take Aragorn for example. His presence and charisma inspired his followers. They usually have strong moral compasses too. Atticus Finch in 'To Kill a Mockingbird' always did what was morally right, leading by example. Additionally, they are adaptable. Paul Atreides in 'Dune' had to quickly adapt to the new environment on Arrakis to lead effectively. They also need to be able to make tough decisions. Captain Kirk in 'Star Trek' often had to make difficult choices for the good of his crew and the mission.
Well, leaders in fiction typically possess the quality of vision. They can see a future that others can't. For instance, Martin Luther King Jr. in the fictionalized accounts of the civil rights movement had a vision of equality. They also are good communicators. Odysseus in 'The Odyssey' was able to communicate with his men, even when they were facing hardships. Empathy is another quality. In 'The Giver', Jonas showed empathy which helped him lead in a different way. And they must have perseverance. Harry Potter never gave up in his fight against Voldemort, which is a sign of great leadership.