diff options
Diffstat (limited to 'source/include/smb_macros.h')
-rw-r--r-- | source/include/smb_macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h index 64135c3cb92..bcbe69146aa 100644 --- a/source/include/smb_macros.h +++ b/source/include/smb_macros.h @@ -37,7 +37,9 @@ #define IS_DOS_HIDDEN(test_mode) (((test_mode) & aHIDDEN) != 0) /* free memory if the pointer is valid and zero the pointer */ +#ifndef SAFE_FREE #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) +#endif /* zero a structure */ #define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) |