diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-26 11:35:50 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-26 11:35:50 +0200 |
commit | 9bb4ca9ec8ed504429d582ac3de28aaf8d88b1e8 (patch) | |
tree | 90cc967132b76bf34efabf647a5f7394004c87e3 /src/cli.c | |
parent | 2dda25d95dd45c83402088d53dbb5b0f7c893f9d (diff) | |
download | gnutls-9bb4ca9ec8ed504429d582ac3de28aaf8d88b1e8.tar.gz |
tools: eliminated memory leaks in deinitialization
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1928,7 +1928,6 @@ static int cert_verify_ocsp(gnutls_session_t session) } for (it = 0; it < cert_list_size; it++) { - gnutls_x509_crt_init(&cert); if (deinit_cert) gnutls_x509_crt_deinit(cert); gnutls_x509_crt_init(&cert); @@ -1975,6 +1974,7 @@ static int cert_verify_ocsp(gnutls_session_t session) /* verify and check the response for revoked cert */ ret = check_ocsp_response(cert, issuer, &resp, &nonce, verbose); + free(resp.data); if (ret == 1) ok++; else if (ret == 0) { |