From: Joshua Colp Date: Thu, 28 May 2009 15:23:29 +0000 (+0000) Subject: Fix an incorrect call to ast_string_field_free_memory which caused a crash in the... X-Git-Tag: 11.0.0-beta1~4793 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea89db8ce05b5eb114033196442f4b40ae4f5cb0;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/logger.c b/main/logger.c index 8794ef82b7..2c1d9ab17e 100644 --- a/main/logger.c +++ b/main/logger.c @@ -987,7 +987,6 @@ static void *logger_thread(void *data) logger_print_verbose(msg); /* Free the data since we are done */ - ast_string_field_free_memory(msg); ast_free(msg); }