diff options
-rw-r--r-- | include/asterisk/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index e48ca02c0..1a014330e 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -525,8 +525,13 @@ long int ast_random(void); #define ast_free free #define ast_free_ptr ast_free +#if !defined(STANDALONE) #define MALLOC_FAILURE_MSG \ ast_log_safe(LOG_ERROR, "Memory Allocation Failure in function %s at line %d of %s\n", func, lineno, file) +#else +#define MALLOC_FAILURE_MSG \ + ast_log(LOG_ERROR, "Memory Allocation Failure in function %s at line %d of %s\n", func, lineno, file) +#endif /*! * \brief A wrapper for malloc() |