[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7830 - GNUnet/src/applications/topology_default
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7830 - GNUnet/src/applications/topology_default |
Date: |
Sun, 2 Nov 2008 18:13:25 -0700 (MST) |
Author: grothoff
Date: 2008-11-02 18:13:25 -0700 (Sun, 02 Nov 2008)
New Revision: 7830
Modified:
GNUnet/src/applications/topology_default/topology.c
Log:
leak
Modified: GNUnet/src/applications/topology_default/topology.c
===================================================================
--- GNUnet/src/applications/topology_default/topology.c 2008-11-03 01:11:29 UTC
(rev 7829)
+++ GNUnet/src/applications/topology_default/topology.c 2008-11-03 01:13:25 UTC
(rev 7830)
@@ -453,9 +453,7 @@
"/friends", &fn);
/**Nate change, don't beat me up if it's not pretty!*/
if (GNUNET_OK != GNUNET_disk_file_test (ectx, fn))
- {
- GNUNET_disk_file_write (ectx, fn, NULL, 0, "600");
- }
+ GNUNET_disk_file_write (ectx, fn, NULL, 0, "600");
if ((0 == GNUNET_disk_file_test (ectx, fn)) || (0 != STAT (fn, &frstat)))
{
GNUNET_free (fn);
@@ -472,7 +470,10 @@
if (frstat.st_mtime != friends_mtime)
friends_mtime = frstat.st_mtime;
else
- return 0;
+ {
+ GNUNET_free_non_null(fn);
+ return 0;
+ }
if ((fn != NULL) && (frstat.st_size > 0))
{
data = GNUNET_malloc (frstat.st_size);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7830 - GNUnet/src/applications/topology_default,
gnunet <=