summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-02-18 16:52:40 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-02-18 16:52:40 +0100
commit528d2bbf1cf564fe974570e8679397777913380e (patch)
tree22fdef46ad866d8c8e25f9a0a34a77f24bdde6c8 /doc/examples
parent0986259b1270d37f33fb377e00b1287801ead326 (diff)
downloadgnutls-528d2bbf1cf564fe974570e8679397777913380e.tar.gz
fix small leak
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/ex-ocsp-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/ex-ocsp-client.c b/doc/examples/ex-ocsp-client.c
index 0b00bfded6..33eff67a6c 100644
--- a/doc/examples/ex-ocsp-client.c
+++ b/doc/examples/ex-ocsp-client.c
@@ -292,6 +292,7 @@ _verify_response(gnutls_datum_t * data, gnutls_x509_crt_t cert,
if (verify & GNUTLS_OCSP_VERIFY_CERT_EXPIRED)
printf("Signer cert expired\n");
+ gnutls_free(rnonce.data);
gnutls_ocsp_resp_deinit(resp);
return verify;