summaryrefslogtreecommitdiffstats
path: root/key.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-05-16 20:26:18 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-05-16 20:26:18 +1000
commitcaf00109346e4ab6bb495b0e22bc5b1e7ee22f26 (patch)
tree9a393056e01903a3612e4a2a4b1935d5862f7061 /key.c
parent7e831edbf7a1b0b9aeeb08328b9fceafaad1bf22 (diff)
- djm@cvs.openbsd.org 2013/05/10 04:08:01
[key.c] memleak in cert_free(), wasn't actually freeing the struct; bz#2096 from shm AT digitalsun.pl
Diffstat (limited to 'key.c')
-rw-r--r--key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/key.c b/key.c
index 471cd1fc..b8c60cb2 100644
--- a/key.c
+++ b/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.101 2013/04/19 01:06:50 djm Exp $ */
+/* $OpenBSD: key.c,v 1.102 2013/05/10 04:08:01 djm Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -195,6 +195,7 @@ cert_free(struct KeyCert *cert)
xfree(cert->principals);
if (cert->signature_key != NULL)
key_free(cert->signature_key);
+ xfree(cert);
}
void