more "if (p) free(p)" fixes; fix a typo in comment

2 files changed