mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
[Core] Fix possible leak of the subclass variable in CUSTOM_HASH'es switch_event_reserve_subclass_detailed().
This commit is contained in:
@@ -1338,6 +1338,12 @@ SWITCH_DECLARE(void) switch_split_time(const char *exp, int *hour, int *min, int
|
||||
*/
|
||||
SWITCH_DECLARE(int) switch_split_user_domain(char *in, char **user, char **domain);
|
||||
|
||||
SWITCH_DECLARE(void *) switch_calloc(size_t nmemb, size_t size);
|
||||
|
||||
#ifdef __clang_analyzer__
|
||||
#define calloc switch_calloc
|
||||
#endif
|
||||
|
||||
/* malloc or DIE macros */
|
||||
#ifdef NDEBUG
|
||||
#define switch_malloc(ptr, len) (void)( (!!(ptr = malloc(len))) || (fprintf(stderr,"ABORT! Malloc failure at: %s:%d", __FILE__, __LINE__),abort(), 0), ptr )
|
||||
|
||||
Reference in New Issue
Block a user