diff options
author | Damien Miller <djm@mindrot.org> | 2006-06-13 13:00:25 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-06-13 13:00:25 +1000 |
commit | 40b5985fe0b2b8e0b78d7bf7f19bcab6018f0a64 (patch) | |
tree | 13438d41f0b7d92461ba2cecb520865245383052 /ssh-keygen.c | |
parent | 24fd8ddd61bbbb4d1a5accb9b8bf640904e12be5 (diff) |
- markus@cvs.openbsd.org 2006/05/17 12:43:34
[scp.c sftp.c ssh-agent.c ssh-keygen.c sshconnect.c]
fix leak; coverity via Kylene Jo Hall
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index ef417514a..e06ae1a52 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.143 2006/03/30 11:05:17 dtucker Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.144 2006/05/17 12:43:34 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -514,8 +514,10 @@ do_fingerprint(struct passwd *pw) | |||
514 | xfree(fp); | 514 | xfree(fp); |
515 | exit(0); | 515 | exit(0); |
516 | } | 516 | } |
517 | if (comment) | 517 | if (comment) { |
518 | xfree(comment); | 518 | xfree(comment); |
519 | comment = NULL; | ||
520 | } | ||
519 | 521 | ||
520 | f = fopen(identity_file, "r"); | 522 | f = fopen(identity_file, "r"); |
521 | if (f != NULL) { | 523 | if (f != NULL) { |