[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: PQ: fix notification API bugs
From: |
gnunet |
Subject: |
[gnunet] branch master updated: PQ: fix notification API bugs |
Date: |
Sun, 01 Aug 2021 14:56:35 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new c98bf47a8 PQ: fix notification API bugs
c98bf47a8 is described below
commit c98bf47a8fc54e1dc9e413c0cb4506789a9ddeee
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 1 14:53:14 2021 +0200
PQ: fix notification API bugs
---
src/pq/pq_event.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/pq/pq_event.c b/src/pq/pq_event.c
index e1134a5fa..bf845db18 100644
--- a/src/pq/pq_event.c
+++ b/src/pq/pq_event.c
@@ -192,6 +192,7 @@ GNUNET_PQ_event_do_poll (struct GNUNET_PQ_Context *db)
GNUNET_assert (0 ==
pthread_mutex_lock (&db->notify_lock));
+ PQconsumeInput (db->conn);
while (NULL != (n = PQnotifies (db->conn)))
{
struct GNUNET_ShortHashCode sh;
@@ -208,6 +209,7 @@ GNUNET_PQ_event_do_poll (struct GNUNET_PQ_Context *db)
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Ignoring notification for unsupported channel identifier
`%s'\n",
n->relname);
+ PQfreemem (n);
continue;
}
if ( (NULL != n->extra) &&
@@ -221,12 +223,14 @@ GNUNET_PQ_event_do_poll (struct GNUNET_PQ_Context *db)
"Ignoring notification for unsupported extra data `%s' on
channel `%s'\n",
n->extra,
n->relname);
+ PQfreemem (n);
continue;
}
GNUNET_CONTAINER_multishortmap_iterate (db->channel_map,
&do_notify,
&ctx);
GNUNET_free (ctx.extra);
+ PQfreemem (n);
}
GNUNET_assert (0 ==
pthread_mutex_unlock (&db->notify_lock));
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: PQ: fix notification API bugs,
gnunet <=