[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34647 - gnunet/src/peerstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34647 - gnunet/src/peerstore |
Date: |
Tue, 16 Dec 2014 20:28:42 +0100 |
Author: grothoff
Date: 2014-12-16 20:28:42 +0100 (Tue, 16 Dec 2014)
New Revision: 34647
Modified:
gnunet/src/peerstore/peerstore_api.c
Log:
-fix leak
Modified: gnunet/src/peerstore/peerstore_api.c
===================================================================
--- gnunet/src/peerstore/peerstore_api.c 2014-12-16 19:25:11 UTC (rev
34646)
+++ gnunet/src/peerstore/peerstore_api.c 2014-12-16 19:28:42 UTC (rev
34647)
@@ -786,7 +786,7 @@
/**
* When a watch record is received
*
- * @param cls a 'struct GNUNET_PEERSTORE_Handle *'
+ * @param cls a `struct GNUNET_PEERSTORE_Handle *`
* @param msg message received, NULL on timeout or fatal error
*/
static void
@@ -800,12 +800,12 @@
if (NULL == msg)
{
LOG (GNUNET_ERROR_TYPE_ERROR,
- _
- ("Problem receiving a watch response, no way to determine which
request.\n"));
+ _("Problem receiving a watch response, no way to determine which
request.\n"));
reconnect (h);
return;
}
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Received a watch record from service.\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Received a watch record from service.\n");
record = PEERSTORE_parse_record_message (msg);
PEERSTORE_hash_key (record->sub_system, record->peer, record->key, &keyhash);
wc = GNUNET_CONTAINER_multihashmap_get (h->watches, &keyhash);
@@ -813,6 +813,7 @@
{
LOG (GNUNET_ERROR_TYPE_ERROR,
_("Received a watch result for a non existing watch.\n"));
+ PEERSTORE_destroy_record (record);
reconnect (h);
return;
}
@@ -825,7 +826,7 @@
/**
* Callback after MQ envelope is sent
*
- * @param cls a 'struct GNUNET_PEERSTORE_WatchContext *'
+ * @param cls a `struct GNUNET_PEERSTORE_WatchContext *`
*/
static void
watch_request_sent (void *cls)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34647 - gnunet/src/peerstore,
gnunet <=