summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-04-23 15:23:24 +1000
committerDamien Miller <djm@mindrot.org>2013-04-23 15:23:24 +1000
commit0d6771b4648889ae5bc4235f9e3fc6cd82b710bd (patch)
treee55e668267868162ac4fa312a0b6da8ad01264f5 /ssh-keygen.c
parent467b00c38ba244f9966466e57a89d003f3afb159 (diff)
- djm@cvs.openbsd.org 2013/04/19 01:01:00
[ssh-keygen.c] fix some memory leaks; bz#2088 ok dtucker@
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index d1a205e18..8acbcc493 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.225 2013/02/10 23:32:10 djm Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.226 2013/04/19 01:01:00 djm 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
@@ -2038,6 +2038,7 @@ update_krl_from_file(struct passwd *pw, const char *file, const Key *ca,
2038 } 2038 }
2039 if (strcmp(path, "-") != 0) 2039 if (strcmp(path, "-") != 0)
2040 fclose(krl_spec); 2040 fclose(krl_spec);
2041 free(path);
2041} 2042}
2042 2043
2043static void 2044static void
@@ -2090,6 +2091,8 @@ do_gen_krl(struct passwd *pw, int updating, int argc, char **argv)
2090 close(fd); 2091 close(fd);
2091 buffer_free(&kbuf); 2092 buffer_free(&kbuf);
2092 ssh_krl_free(krl); 2093 ssh_krl_free(krl);
2094 if (ca != NULL)
2095 key_free(ca);
2093} 2096}
2094 2097
2095static void 2098static void