summaryrefslogtreecommitdiff
path: root/lib/x509/verify-high.c
diff options
context:
space:
mode:
authorArmin Burgmeier <armin@arbur.net>2014-09-18 11:22:50 -0400
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-21 00:43:30 +0200
commit6b5a3563e9cf30553d87fb53bf7fd97b4b8e34f0 (patch)
tree6c9e95aa7706a60ec85036e68b72730702559013 /lib/x509/verify-high.c
parent5e38d08dfbf033305cfab6526aaa714e876ad535 (diff)
downloadgnutls-6b5a3563e9cf30553d87fb53bf7fd97b4b8e34f0.tar.gz
Memory leak fix on certificate copy failure
Signed-off-by: Armin Burgmeier <armin@arbur.net>
Diffstat (limited to 'lib/x509/verify-high.c')
-rw-r--r--lib/x509/verify-high.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index e7faccc12a..065920d128 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -302,6 +302,7 @@ int ret;
ret = _gnutls_x509_crt_cpy(dst, src);
if (ret < 0) {
+ gnutls_x509_crt_deinit(dst);
gnutls_assert();
return NULL;
}