Fixed invalid free.