gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r269 - in GNUnet/src: applications/gap applications/stats s


From: grothoff
Subject: [GNUnet-SVN] r269 - in GNUnet/src: applications/gap applications/stats server
Date: Mon, 14 Feb 2005 22:29:25 -0800 (PST)

Author: grothoff
Date: 2005-02-14 22:29:23 -0800 (Mon, 14 Feb 2005)
New Revision: 269

Modified:
   GNUnet/src/applications/gap/gap.c
   GNUnet/src/applications/stats/statistics.c
   GNUnet/src/server/startup.c
Log:
fixing leak

Modified: GNUnet/src/applications/gap/gap.c
===================================================================
--- GNUnet/src/applications/gap/gap.c   2005-02-15 06:17:28 UTC (rev 268)
+++ GNUnet/src/applications/gap/gap.c   2005-02-15 06:29:23 UTC (rev 269)
@@ -1507,6 +1507,9 @@
     }
     FREE(perm);
   }
+  GROW(cls.values,
+       cls.valueCount,
+       0);
 
 
 

Modified: GNUnet/src/applications/stats/statistics.c
===================================================================
--- GNUnet/src/applications/stats/statistics.c  2005-02-15 06:17:28 UTC (rev 
268)
+++ GNUnet/src/applications/stats/statistics.c  2005-02-15 06:29:23 UTC (rev 
269)
@@ -166,9 +166,10 @@
   for (i=0;i<statCounters;i++)
     FREE(descriptions[i]);
   FREENONNULL(descriptions);
-  FREENONNULL(values);
   descriptions = NULL;
-  values = NULL;
+  GROW(values,
+       statCounters,
+       0);
 }
 
 

Modified: GNUnet/src/server/startup.c
===================================================================
--- GNUnet/src/server/startup.c 2005-02-15 06:17:28 UTC (rev 268)
+++ GNUnet/src/server/startup.c 2005-02-15 06:29:23 UTC (rev 269)
@@ -220,8 +220,8 @@
 
   /* mechanism to stop gnunetd after a certain
      time without a signal -- to debug with valgrind*/
-  valgrind = 240; //getConfigurationInt("GNUNETD",
-  //    "VALGRIND");
+  valgrind = getConfigurationInt("GNUNETD",
+                "VALGRIND");
   if (valgrind > 0)
     addCronJob(&semaphore_up,
               valgrind * cronSECONDS,





reply via email to

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