diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-03 15:49:37 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-03 16:14:18 +0100 |
commit | baebe4944378991b857669de05c959b96888a9e3 (patch) | |
tree | c2dc57916869a264d9ec0007565a776312801406 /lib | |
parent | fa6732a1a423af95117339c75d527043050d089d (diff) | |
download | gnutls-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.c | 3 |
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); } |