[asterisk-commits] file: branch file/logqueue r48698 -
/team/file/logqueue/main/logger.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 20 20:09:41 MST 2006
Author: file
Date: Wed Dec 20 21:09:41 2006
New Revision: 48698
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48698
Log:
Fix memory leak. Enough memory is already allocated during the initial calloc of the structure.
Modified:
team/file/logqueue/main/logger.c
Modified: team/file/logqueue/main/logger.c
URL: http://svn.digium.com/view/asterisk/team/file/logqueue/main/logger.c?view=diff&rev=48698&r1=48697&r2=48698
==============================================================================
--- team/file/logqueue/main/logger.c (original)
+++ team/file/logqueue/main/logger.c Wed Dec 20 21:09:41 2006
@@ -922,7 +922,7 @@
return;
/* Copy string over */
- strcpy(logmsg->str, ast_strdup(buf->str));
+ strcpy(logmsg->str, buf->str);
/* Set type to be normal */
logmsg->type = LOGMSG_NORMAL;
More information about the asterisk-commits
mailing list