mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix an incorrect call to ast_string_field_free_memory which caused a crash in the logger.
Since the message structure is allocated using ast_calloc_with_stringfields we do not need to free the memory used for the stringfields as it will get freed when the message structure is. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -987,7 +987,6 @@ static void *logger_thread(void *data)
|
|||||||
logger_print_verbose(msg);
|
logger_print_verbose(msg);
|
||||||
|
|
||||||
/* Free the data since we are done */
|
/* Free the data since we are done */
|
||||||
ast_string_field_free_memory(msg);
|
|
||||||
ast_free(msg);
|
ast_free(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user