summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-rsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-13 16:24:38 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-13 16:24:38 +0100
commit12deb6c2670f663a3c0734e28673f508fffa3210 (patch)
tree0ca246a3b65bf20c541859882edb74225db4a3df /src/util/taler-exchange-secmod-rsa.c
parentcd17d095e8d542d6cef854e8394472364e9a01b9 (diff)
downloadexchange-12deb6c2670f663a3c0734e28673f508fffa3210.tar.gz
exchange-12deb6c2670f663a3c0734e28673f508fffa3210.tar.bz2
exchange-12deb6c2670f663a3c0734e28673f508fffa3210.zip
fix memory leaks
Diffstat (limited to 'src/util/taler-exchange-secmod-rsa.c')
-rw-r--r--src/util/taler-exchange-secmod-rsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index ebd2d375b..d2e44e703 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -614,6 +614,8 @@ handle_done (void *cls)
buf_size = GNUNET_CRYPTO_rsa_signature_encode (wi->rsa_signature,
&buf);
+ GNUNET_CRYPTO_rsa_signature_free (wi->rsa_signature);
+ wi->rsa_signature = NULL;
tsize = sizeof (*sr) + buf_size;
GNUNET_assert (tsize < UINT16_MAX);
sr = GNUNET_malloc (tsize);
@@ -638,6 +640,7 @@ handle_done (void *cls)
(dk->purge) )
free_dk (dk);
}
+ GNUNET_free (wi->blinded_msg);
GNUNET_free (wi);
GNUNET_assert (0 == pthread_mutex_lock (&done_lock));
}