Fix the bug 'free() invalid pointer'.