monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] [monit] r209 committed - fix memory leak


From: monit
Subject: [monit-dev] [monit] r209 committed - fix memory leak
Date: Mon, 26 Jul 2010 16:22:50 +0000

Revision: 209
Author: martin2812
Date: Mon Jul 26 09:21:41 2010
Log: fix memory leak
http://code.google.com/p/monit/source/detail?r=209

Modified:
 /trunk/p.y

=======================================
--- /trunk/p.y  Mon Jul 26 07:54:50 2010
+++ /trunk/p.y  Mon Jul 26 09:21:41 2010
@@ -1618,7 +1618,7 @@
                 | IF matchflagnot MATCH STRING rate1 THEN action1 {
                     matchset.ignore = FALSE;
                     matchset.match_path = NULL;
-                    matchset.match_string = xstrdup($4);
+                    matchset.match_string = $4;
                     addmatch(&matchset, $<number>7, 0);
                   }
                 | IGNORE matchflagnot MATCH PATH {
@@ -1631,7 +1631,7 @@
                 | IGNORE matchflagnot MATCH STRING {
                     matchset.ignore = TRUE;
                     matchset.match_path = NULL;
-                    matchset.match_string = xstrdup($4);
+                    matchset.match_string = $4;
                     addmatch(&matchset, ACTION_IGNORE, 0);
                   }
                 ;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]