diff options
Diffstat (limited to 'source/include/smb_macros.h')
-rw-r--r-- | source/include/smb_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h index bcbe69146aa..8161fc70962 100644 --- a/source/include/smb_macros.h +++ b/source/include/smb_macros.h @@ -38,7 +38,7 @@ /* 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) +#define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0) #endif /* zero a structure */ |