Move the free(parser); into the if block, no reason to free if it's NULL
Merge pull request #2 from dstufft/move-parser-free

Move the free(parser); into the if block, no reason to free if it's NULL