aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/diffie_hellman.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-10-04 15:20:00 +0000
committerMartin Willi <martin@strongswan.org>2007-10-04 15:20:00 +0000
commit493f377b41694cb9670a620e2761f7457c4fd00e (patch)
treecd30ffe5f71e9b55a0463de877c2081e69871d99 /src/libstrongswan/crypto/diffie_hellman.c
parentc96aefe268f7d8430487ce8efa390cf02385951d (diff)
downloadstrongswan-493f377b41694cb9670a620e2761f7457c4fd00e.tar.bz2
strongswan-493f377b41694cb9670a620e2761f7457c4fd00e.tar.xz
fixed memory leak
Diffstat (limited to 'src/libstrongswan/crypto/diffie_hellman.c')
-rw-r--r--src/libstrongswan/crypto/diffie_hellman.c1
1 files changed, 1 insertions, 0 deletions
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);
}