Fixup: forgot to avoid free'ing null pointer