summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-26 11:35:50 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-26 11:35:50 +0200
commit9bb4ca9ec8ed504429d582ac3de28aaf8d88b1e8 (patch)
tree90cc967132b76bf34efabf647a5f7394004c87e3 /src/cli.c
parent2dda25d95dd45c83402088d53dbb5b0f7c893f9d (diff)
downloadgnutls-9bb4ca9ec8ed504429d582ac3de28aaf8d88b1e8.tar.gz
tools: eliminated memory leaks in deinitialization
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 066a16b327..8e446f265e 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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) {