From 79e447f37ab0942e73f92029a8c9d61eeb94bc3f Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Thu, 27 Apr 2000 08:01:29 +0000 Subject: xfree DSA blobs --- usr.bin/ssh/ssh-keygen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/ssh/ssh-keygen.c') diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index eae66500250..51ff058d96b 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -7,7 +7,7 @@ */ #include "includes.h" -RCSID("$Id: ssh-keygen.c,v 1.20 2000/04/26 21:55:04 deraadt Exp $"); +RCSID("$Id: ssh-keygen.c,v 1.21 2000/04/27 08:01:27 markus Exp $"); #include #include @@ -130,6 +130,7 @@ do_convert_to_ssh2(struct passwd *pw) dump_base64(stdout, blob, len); fprintf(stdout, SSH_COM_MAGIC_END "\n"); key_free(k); + xfree(blob); exit(0); } @@ -206,6 +207,7 @@ do_print_public(struct passwd *pw) if (!key_write(k, stdout)) fprintf(stderr, "key_write failed"); key_free(k); + xfree(blob); fprintf(stdout, "\n"); exit(0); } -- cgit v1.2.3