diff options
author | 2013-04-19 01:01:00 +0000 | |
---|---|---|
committer | 2013-04-19 01:01:00 +0000 | |
commit | 1b8e3ce2ebeb4df63b14db7f992475dc4387cb26 (patch) | |
tree | afaeead83c0a2417a7688451c656f5471549b6ba /usr.bin/ssh | |
parent | document the requirment that the AuthorizedKeysCommand be owned by root; (diff) | |
download | wireguard-openbsd-1b8e3ce2ebeb4df63b14db7f992475dc4387cb26.tar.xz wireguard-openbsd-1b8e3ce2ebeb4df63b14db7f992475dc4387cb26.zip |
fix some memory leaks; bz#2088 ok dtucker@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index dc83d7bd02f..a6e9549c3a5 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.225 2013/02/10 23:32:10 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.226 2013/04/19 01:01:00 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -2023,6 +2023,7 @@ update_krl_from_file(struct passwd *pw, const char *file, const Key *ca, } if (strcmp(path, "-") != 0) fclose(krl_spec); + free(path); } static void @@ -2075,6 +2076,8 @@ do_gen_krl(struct passwd *pw, int updating, int argc, char **argv) close(fd); buffer_free(&kbuf); ssh_krl_free(krl); + if (ca != NULL) + key_free(ca); } static void |