Fix crash when fewer than 25 comments

A variable is reused after it's `free()`ed. It's actually a typo, so fix that.

But also set the `free()`ed variable to NULL when done with them to have it avoid pointing to random memory