diff options
Diffstat (limited to 'source4/include')
-rw-r--r-- | source4/include/smb_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/include/smb_macros.h b/source4/include/smb_macros.h index 276076955f..23b1fd1a4e 100644 --- a/source4/include/smb_macros.h +++ b/source4/include/smb_macros.h @@ -72,7 +72,7 @@ * @note You are explicitly allowed to pass NULL pointers -- they will * always be ignored. **/ -#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0) +#define SAFE_FREE(x) do { if ((x) != NULL) {free(discard_const_p(void *, (x))); (x)=NULL;} } while(0) #endif |