fix mem leaks
authorFlorian Dold <florian.dold@gmail.com>
Sat, 18 Jan 2020 18:14:45 +0000 (19:14 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Sat, 18 Jan 2020 18:14:54 +0000 (19:14 +0100)
contrib/build-common
src/pq/pq_connect.c
src/util/crypto_rsa.c

index 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd..d81bbfabc2538932f631d3946bd6a9b95182b4f2 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd
+Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2
index f158a4c3ac3ee19ffe05ff1279a247fc3afd2aad..ec074c956566156378abd0f08e056ee705298522 100644 (file)
@@ -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);
index 5bea87793ab2e253d3755e20ce8a523ee3a2d694..f0d56479080f644eb3002e9af5a9f4b1541d2d87 100644 (file)
@@ -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;
 }