fixed memory leak
[strongswan.git] / src / libstrongswan / crypto / diffie_hellman.c
index 7b33ae4..605892e 100644 (file)
@@ -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);
 }