Is Misa's suicide being caused by Light's death a flaw in the story? In Episode 37, Light dies. Soon after that, Misa commits suicide. But I'm a little confused now, because of this rule:


  the death of the person whose name is written in the book can not lead to anyone else's death


Now, everyone knows that Misa will commit suicide if Light dies. But the death of a person whose name is written in the book can't lead to anyone else's death. So basically, Ryuk shouldn't have been able to kill Light, because if Light is dead, that will indirectly lead to Misa's death. So, have I missed something in Death Note, or am I right?
The title of this question is misleading, because "another flaw" assumes there was a first flaw. Death Note avoids plot holes more rigorously than perhaps any other series in existence. Whenever someone misunderstands or forgets some element of the storyline, they tend to think their misunderstanding must be a flaw in the story.

The rule you're thinking of is Rule XXVI.




  Even though only one name is written in the Death Note, if it influences and causes other humans that are not written in it to die, the victim's cause of death will be a heart attack.


Things to note:

1) It doesn't say that the Death Note is incapable of killing people who aren't written in it. It only says that, in these cases, the victim's cause of death must be a heart attack.

2) This rule only specifically refers to directly causing the immediate death of other people. This is made clear in the story, and it's also clarified in the rules, with Rule XLII.




  The use of the Death Note in the human world sometimes affects other human's lives or shortens their original life-span, even though their names are not actually written in the Death Note itself. In these cases, no matter the cause, the god of death sees only the original life-span and not the shortened life-span.


It spells it out here that killing a human with the Death Note can shorten the lifespan of other humans, "even though their names are not actually written in the Death Note".