不会泄漏的,内存分配实现中在分配内存时会记录分配的相关信息 如下面的结构表示 //define the information of memory head typedef struct AN_ST_MHINFO{ unsigned int nSize; //alloc memory size struct AN_ST_MHINFO *pHRPre; //alloc memory real of prev struct AN_ST_MHINFO *pHFNext; //memory free of next struct AN_ST_MHINFO *pHFPre; //memory free of prev }ANMMHInfo;