gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7139 - GNUnet/src/applications/fs/collection


From: gnunet
Subject: [GNUnet-SVN] r7139 - GNUnet/src/applications/fs/collection
Date: Wed, 11 Jun 2008 22:08:02 -0600 (MDT)

Author: grothoff
Date: 2008-06-11 22:08:01 -0600 (Wed, 11 Jun 2008)
New Revision: 7139

Modified:
   GNUnet/src/applications/fs/collection/collection.c
Log:
fix

Modified: GNUnet/src/applications/fs/collection/collection.c
===================================================================
--- GNUnet/src/applications/fs/collection/collection.c  2008-06-12 04:03:23 UTC 
(rev 7138)
+++ GNUnet/src/applications/fs/collection/collection.c  2008-06-12 04:08:01 UTC 
(rev 7139)
@@ -156,7 +156,7 @@
     }
   /* read collection data */
   if (GNUNET_OK != GNUNET_disk_file_size (ectx, fn, &size, GNUNET_YES))
-    {
+    {      
       GNUNET_free (fn);
       return;
     }
@@ -422,10 +422,10 @@
       GNUNET_mutex_unlock (lock);
       return GNUNET_SYSERR;
     }
-  GNUNET_ECRS_uri_destroy (rootURI);
   collectionData = GNUNET_malloc (sizeof (CollectionInfo));
   memset (collectionData, 0, sizeof (CollectionInfo));
   GNUNET_ECRS_uri_get_namespace_from_sks (rootURI, &collectionData->data.pid);
+  GNUNET_ECRS_uri_destroy (rootURI);
   collectionData->data.priority = htonl (prio);
   collectionData->data.anonymityLevel = htonl (anonymityLevel);
   collectionData->meta = GNUNET_meta_data_duplicate (meta);





reply via email to

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