diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-02 17:05:29 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-02 17:05:44 +0100 |
commit | 2700f0f3b7e6cc76cf9f5de1567c95a6990e14bf (patch) | |
tree | 89706ebffd532c221df4f9e542d75647cb417e64 | |
parent | fd5873306f7714d8606eb149bcae7d27dc05e7f0 (diff) | |
download | gnutls-2700f0f3b7e6cc76cf9f5de1567c95a6990e14bf.tar.gz |
_gnutls_x509_get_signature: fix memory leak on error path
-rw-r--r-- | lib/x509/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/x509/common.c b/lib/x509/common.c index c2585ee3fd..b260784a6c 100644 --- a/lib/x509/common.c +++ b/lib/x509/common.c @@ -1305,7 +1305,8 @@ _gnutls_x509_get_signature(ASN1_TYPE src, const char *src_name, return 0; - cleanup: + cleanup: + gnutls_free(signature->data); return result; } |