diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-04-08 17:08:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-04-08 17:37:57 +0200 |
commit | cac89ca4d2dd56d2c7cd289ee6956ecf4570dc6b (patch) | |
tree | 7bae220806d809ab9cb64494dd02a11ab2fe958b /lib/gnutls_pubkey.c | |
parent | 3dc56f59d5a00e4766e475c9db00b28ccca64aad (diff) | |
download | gnutls-cac89ca4d2dd56d2c7cd289ee6956ecf4570dc6b.tar.gz |
Corrected leaks in gnutls_pubkey_t deinitialization.
Diffstat (limited to 'lib/gnutls_pubkey.c')
-rw-r--r-- | lib/gnutls_pubkey.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c index 0075f3917c..1775a62298 100644 --- a/lib/gnutls_pubkey.c +++ b/lib/gnutls_pubkey.c @@ -147,6 +147,13 @@ gnutls_pubkey_init (gnutls_pubkey_t * key) void gnutls_pubkey_deinit (gnutls_pubkey_t key) { +int i; + + for (i = 0; i < key->params_size; i++) + { + _gnutls_mpi_release (&key->params[i]); + } + gnutls_free (key); } |