fixed bug that caused double mem free