[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7473 - GNUnet/src/util/error
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7473 - GNUnet/src/util/error |
Date: |
Sat, 19 Jul 2008 22:01:20 -0600 (MDT) |
Author: grothoff
Date: 2008-07-19 22:01:20 -0600 (Sat, 19 Jul 2008)
New Revision: 7473
Modified:
GNUnet/src/util/error/error.c
Log:
leak
Modified: GNUnet/src/util/error/error.c
===================================================================
--- GNUnet/src/util/error/error.c 2008-07-20 04:01:10 UTC (rev 7472)
+++ GNUnet/src/util/error/error.c 2008-07-20 04:01:20 UTC (rev 7473)
@@ -131,8 +131,10 @@
GNUNET_CronTime now;
int rev;
char *last;
-
- if ((ctx->last_bulk_time == 0) || (ctx->last_bulk_repeat == 0))
+
+ if ( (ctx == NULL) ||
+ (ctx->last_bulk_time == 0) ||
+ (ctx->last_bulk_repeat == 0) )
return;
now = GNUNET_get_time ();
rev = 0;
@@ -208,6 +210,7 @@
if ((now - ctx->last_bulk_time > BULK_DELAY_THRESHOLD) ||
(ctx->last_bulk_repeat > BULK_REPEAT_THRESHOLD))
flush_bulk (ctx, date);
+ free (buf);
return;
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7473 - GNUnet/src/util/error,
gnunet <=