Free memory allocated.