Free memory after we're done using it, not before.