From 493f377b41694cb9670a620e2761f7457c4fd00e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 4 Oct 2007 15:20:00 +0000 Subject: [PATCH] fixed memory leak --- src/libstrongswan/crypto/diffie_hellman.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstrongswan/crypto/diffie_hellman.c b/src/libstrongswan/crypto/diffie_hellman.c index 7b33ae4ed..605892e87 100644 --- a/src/libstrongswan/crypto/diffie_hellman.c +++ b/src/libstrongswan/crypto/diffie_hellman.c @@ -531,6 +531,7 @@ static void destroy(private_diffie_hellman_t *this) mpz_clear(this->ya); mpz_clear(this->yb); mpz_clear(this->zz); + mpz_clear(this->g); free(this); }