From 25769d4da399a1dca13404622c99911337904051 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 18 Jan 2020 19:14:45 +0100 Subject: [PATCH] fix mem leaks --- contrib/build-common | 2 +- src/pq/pq_connect.c | 1 + src/util/crypto_rsa.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/build-common b/contrib/build-common index 1915a74bb..d81bbfabc 160000 --- a/contrib/build-common +++ b/contrib/build-common @@ -1 +1 @@ -Subproject commit 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd +Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2 diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c index f158a4c3a..ec074c956 100644 --- a/src/pq/pq_connect.c +++ b/src/pq/pq_connect.c @@ -322,6 +322,7 @@ GNUNET_PQ_disconnect (struct GNUNET_PQ_Context *db) GNUNET_free_non_null (db->es); GNUNET_free_non_null (db->ps); GNUNET_free_non_null (db->load_path); + GNUNET_free_non_null (db->config_str); PQfinish (db->conn); GNUNET_free (db->config_str); GNUNET_free (db); diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index 5bea87793..f0d564790 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c @@ -1104,6 +1104,7 @@ GNUNET_CRYPTO_rsa_signature_encode (const struct s)); GNUNET_assert (rsize == buf_size); *buffer = (char *) buf; + gcry_mpi_release (s); return buf_size; } -- 2.25.1