3th edit.

successfully free the memory.