diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-05-16 20:26:18 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-05-16 20:26:18 +1000 |
commit | caf00109346e4ab6bb495b0e22bc5b1e7ee22f26 (patch) | |
tree | 9a393056e01903a3612e4a2a4b1935d5862f7061 /key.c | |
parent | 7e831edbf7a1b0b9aeeb08328b9fceafaad1bf22 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.101 2013/04/19 01:06:50 djm Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.102 2013/05/10 04:08:01 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * read_bignum(): | 3 | * read_bignum(): |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -195,6 +195,7 @@ cert_free(struct KeyCert *cert) | |||
195 | xfree(cert->principals); | 195 | xfree(cert->principals); |
196 | if (cert->signature_key != NULL) | 196 | if (cert->signature_key != NULL) |
197 | key_free(cert->signature_key); | 197 | key_free(cert->signature_key); |
198 | xfree(cert); | ||
198 | } | 199 | } |
199 | 200 | ||
200 | void | 201 | void |