[Nagios-checkins] SF.net SVN: nagios:[1818] nagioscore/trunk/common/downtime.c
Nagios network monitoring software is enterprise server monitoring
Brought to you by:
egalstad,
sawolf-nagios
From: <ag...@us...> - 2011-10-07 12:35:32
|
Revision: 1818 http://nagios.svn.sourceforge.net/nagios/?rev=1818&view=rev Author: ageric Date: 2011-10-07 12:35:21 +0000 (Fri, 07 Oct 2011) Log Message: ----------- core: Plug leak in register_downtime() More asprintf() culprits. Fixed-by: Dorian Guillois <dgu...@me...> Signed-off-by: Andreas Ericsson <ae...@op...> Modified Paths: -------------- nagioscore/trunk/common/downtime.c Modified: nagioscore/trunk/common/downtime.c =================================================================== --- nagioscore/trunk/common/downtime.c 2011-10-06 13:28:45 UTC (rev 1817) +++ nagioscore/trunk/common/downtime.c 2011-10-07 12:35:21 UTC (rev 1818) @@ -302,6 +302,7 @@ else add_new_comment(HOST_COMMENT, DOWNTIME_COMMENT, hst->name, NULL, time(NULL), "(Nagios Process)", temp_buffer, 0, COMMENTSOURCE_INTERNAL, FALSE, (time_t)0, &(temp_downtime->comment_id)); + my_free(temp_buffer); /*** SCHEDULE DOWNTIME - FLEXIBLE (NON-FIXED) DOWNTIME IS HANDLED AT A LATER POINT ***/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |