diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-05-02 10:13:15 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-05-02 10:13:15 +0000 |
commit | e05cb165bf043721ac937410dcb79784961f8262 (patch) | |
tree | d0c20371d24568ac65d4a24e4011b4b13b13be65 /lib | |
parent | 6254b9084f9b8760d6f662032fb54b9024f64e4f (diff) | |
download | gnutls-e05cb165bf043721ac937410dcb79784961f8262.tar.gz |
Fix mem leaks.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/x509/output.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c index b359cc4db9..f6dfff8fb2 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -626,6 +626,9 @@ print_cert (gnutls_string * str, gnutls_x509_crt_t cert, int notsigned) addf (str, _("\t\tExponent:\n")); hexdump (str, e.data, e.size, "\t\t\t"); } + + gnutls_free (m.data); + gnutls_free (e.data); } break; @@ -906,6 +909,8 @@ print_cert (gnutls_string * str, gnutls_x509_crt_t cert, int notsigned) addf (str, _("\tSignature:\n")); hexdump (str, buffer, size, "\t\t"); + + gnutls_free (buffer); } } |