summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2013-04-19 01:01:01 +0000
committerDamien Miller <djm@cvs.openbsd.org>2013-04-19 01:01:01 +0000
commitfc3ff7747cb6a1e32f7de2f08e044809d0515c33 (patch)
tree33b6b12332c75ae9afd558b3c040a4dc14500a8d /usr.bin/ssh
parent8a3e89d52f81cc7cc5ad41a9dd5ea8f9d5b3e21c (diff)
fix some memory leaks; bz#2088 ok dtucker@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/ssh-keygen.c5
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