[svn-commits] file: trunk r197570 - /trunk/main/logger.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu May 28 10:23:37 CDT 2009


Author: file
Date: Thu May 28 10:23:29 2009
New Revision: 197570

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=197570
Log:
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.

Modified:
    trunk/main/logger.c

Modified: trunk/main/logger.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/logger.c?view=diff&rev=197570&r1=197569&r2=197570
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Thu May 28 10:23:29 2009
@@ -987,7 +987,6 @@
 				logger_print_verbose(msg);
 
 			/* Free the data since we are done */
-			ast_string_field_free_memory(msg);
 			ast_free(msg);
 		}
 




More information about the svn-commits mailing list