Searched defs:SAFE_FREE (Results 1 – 7 of 7) sorted by relevance
13 #define SAFE_FREE(S) if((S) != NULL) {free((void*) (S)); (S)=NULL;} macro
30 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
28 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
91 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
62 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
61 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
158 #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0) macro