aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-29 18:41:24 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-29 18:41:32 +0100
commit2536cd090b7e467e604cf5cfe5d1d93b32431876 (patch)
tree86159895c633f5bf6944be9d422192b51d048bf7 /src
parentc0b6f577cb6866a8bfce22acbcec6983d5f610f6 (diff)
downloadgnunet-2536cd090b7e467e604cf5cfe5d1d93b32431876.tar.gz
gnunet-2536cd090b7e467e604cf5cfe5d1d93b32431876.zip
-fix leak
Diffstat (limited to 'src')
-rw-r--r--src/datastore/gnunet-service-datastore.c3
-rw-r--r--src/pq/pq_connect.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c
index 97888ce03..498a7b3e6 100644
--- a/src/datastore/gnunet-service-datastore.c
+++ b/src/datastore/gnunet-service-datastore.c
@@ -599,7 +599,8 @@ handle_reserve (void *cls, const struct ReserveMessage *msg)
599 * message happens, the insertion request could be blocked 599 * message happens, the insertion request could be blocked
600 * by less-important content from migration because it is 600 * by less-important content from migration because it is
601 * larger than 1/8th of the overall available space, and 601 * larger than 1/8th of the overall available space, and
602 * we only reserve 1/8th for "fresh" insertions */GNUNET_log ( 602 * we only reserve 1/8th for "fresh" insertions */
603 GNUNET_log (
603 GNUNET_ERROR_TYPE_WARNING, 604 GNUNET_ERROR_TYPE_WARNING,
604 _ ( 605 _ (
605 "The requested amount (%llu bytes) is larger than the cache size (%llu bytes)\n"), 606 "The requested amount (%llu bytes) is larger than the cache size (%llu bytes)\n"),
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c
index a63d5f14e..5fea994ef 100644
--- a/src/pq/pq_connect.c
+++ b/src/pq/pq_connect.c
@@ -122,6 +122,7 @@ GNUNET_PQ_connect2 (const char *config_str,
122 GNUNET_PQ_reconnect (db); 122 GNUNET_PQ_reconnect (db);
123 if (NULL == db->conn) 123 if (NULL == db->conn)
124 { 124 {
125 GNUNET_CONTAINER_multishortmap_destroy (db->channel_map);
125 GNUNET_free (db->load_path); 126 GNUNET_free (db->load_path);
126 GNUNET_free (db->config_str); 127 GNUNET_free (db->config_str);
127 GNUNET_free (db); 128 GNUNET_free (db);