diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-03 15:49:37 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-05 09:02:12 +0100 |
commit | ef41c3f5c621276081c5cafed96146946811a568 (patch) | |
tree | 9da157c96b9c45e4253ae7b83e5eaec2aae6a19b | |
parent | b3e7e78a5a1b72d76f2a0934f8fc21421b04e661 (diff) | |
download | gnutls-ef41c3f5c621276081c5cafed96146946811a568.tar.gz |
x509 output: fixed memory leak in AIA extension printing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-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); } |