Remove tons of useless 'if (x) free (x)'