From 37315f877ef27d0f8585389f0c83cd00a31577c1 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 21 Nov 2016 15:22:48 +0100 Subject: Reworked server and client to do one mix and shutdown. This is done as cleanly as possible to track down any memory leaks. unfortunately there is still one async operation running on the nodes. when there should be none. So the nodes are still forced to stop with a. io_service.stop(). --- libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c') diff --git a/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c b/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c index 21a7618..4e96466 100644 --- a/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c +++ b/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c @@ -283,8 +283,13 @@ unsigned int gcrypt_elgamal_get_uniform_int(unsigned int upper) { void gcrypt_elgamal_deinitialize(void) { gcry_mpi_release(p); + p = NULL; + gcry_mpi_release(q); + q = NULL; + gcry_mpi_release(g); + g = NULL; } Initializer elgamal_initialize = &gcrypt_elgamal_initialize; -- cgit v1.2.3-70-g09d2