summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-03 15:49:37 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-03 16:14:18 +0100
commitbaebe4944378991b857669de05c959b96888a9e3 (patch)
treec2dc57916869a264d9ec0007565a776312801406 /lib
parentfa6732a1a423af95117339c75d527043050d089d (diff)
downloadgnutls-baebe4944378991b857669de05c959b96888a9e3.tar.gz
x509 output: fixed memory leak in AIA extension printing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/x509/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c
index 04a4ee9273..24817ed678 100644
--- a/lib/x509/output.c
+++ b/lib/x509/output.c
@@ -349,7 +349,7 @@ static void print_aia(gnutls_buffer_st * str, const gnutls_datum_t *der)
if (err < 0) {
addf(str, "error: get_aia: %s\n",
gnutls_strerror(err));
- return;
+ goto cleanup;
}
for (seq=0;;seq++) {
@@ -374,7 +374,6 @@ static void print_aia(gnutls_buffer_st * str, const gnutls_datum_t *der)
print_name(str, "", san_type, &san, 0);
}
- return;
cleanup:
gnutls_x509_aia_deinit(aia);
}