gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r30646 - gnunet/src/datacache


From: gnunet
Subject: [GNUnet-SVN] r30646 - gnunet/src/datacache
Date: Sat, 9 Nov 2013 21:47:23 +0100

Author: grothoff
Date: 2013-11-09 21:47:23 +0100 (Sat, 09 Nov 2013)
New Revision: 30646

Modified:
   gnunet/src/datacache/datacache.c
   gnunet/src/datacache/plugin_datacache_heap.c
Log:
-doxygen, memory leak in heap plugin on shutdown

Modified: gnunet/src/datacache/datacache.c
===================================================================
--- gnunet/src/datacache/datacache.c    2013-11-09 20:21:48 UTC (rev 30645)
+++ gnunet/src/datacache/datacache.c    2013-11-09 20:47:23 UTC (rev 30646)
@@ -233,9 +233,9 @@
  * @param data data to store
  * @param type type of the value
  * @param discard_time when to discard the value in any case
- * @param path_info_len number of entries in 'path_info'
+ * @param path_info_len number of entries in @a path_info
  * @param path_info a path through the network
- * @return GNUNET_OK on success, GNUNET_SYSERR on error, GNUNET_NO if duplicate
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error, #GNUNET_NO if 
duplicate
  */
 int
 GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,

Modified: gnunet/src/datacache/plugin_datacache_heap.c
===================================================================
--- gnunet/src/datacache/plugin_datacache_heap.c        2013-11-09 20:21:48 UTC 
(rev 30645)
+++ gnunet/src/datacache/plugin_datacache_heap.c        2013-11-09 20:47:23 UTC 
(rev 30646)
@@ -156,7 +156,7 @@
  * @param cls the 'struct PutContext'
  * @param key the key for the value(s)
  * @param value an existing value
- * @return GNUNET_YES if not found (to continue to iterate)
+ * @return #GNUNET_YES if not found (to continue to iterate)
  */
 static int
 put_cb (void *cls,
@@ -198,13 +198,13 @@
 /**
  * Store an item in the datastore.
  *
- * @param cls closure (our "struct Plugin")
+ * @param cls closure (our `struct Plugin`)
  * @param key key to store data under
  * @param size number of bytes in data
  * @param data data to store
  * @param type type of the value
  * @param discard_time when to discard the value in any case
- * @param path_info_len number of entries in 'path_info'
+ * @param path_info_len number of entries in @a path_info
  * @param path_info a path through the network
    * @return 0 if duplicate, -1 on error, number of bytes used otherwise
  */
@@ -356,7 +356,7 @@
  * from the datacache right now.
  *
  * @param cls closure (our "struct Plugin")
- * @return GNUNET_OK on success, GNUNET_SYSERR on error
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 static int
 heap_plugin_del (void *cls)
@@ -383,8 +383,8 @@
 /**
  * Entry point for the plugin.
  *
- * @param cls closure (the "struct GNUNET_DATACACHE_PluginEnvironmnet")
- * @return the plugin's closure (our "struct Plugin")
+ * @param cls closure (the `struct GNUNET_DATACACHE_PluginEnvironmnet`)
+ * @return the plugin's closure (our `struct Plugin`)
  */
 void *
 libgnunet_plugin_datacache_heap_init (void *cls)
@@ -427,6 +427,7 @@
                   GNUNET_CONTAINER_multihashmap_remove (plugin->map,
                                                         &val->key,
                                                         val));
+    GNUNET_free_non_null (val->path_info);
     GNUNET_free (val);
   }
   GNUNET_CONTAINER_heap_destroy (plugin->heap);




reply via email to

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