#define FREE_SAFELY(X) { free(X); X=NULL; } 转载于:https://www.cnblogs.com/woodysu/archive/2010/05/27/1745326.html