diff options
author | 2005-11-21 09:52:22 +0000 | |
---|---|---|
committer | 2005-11-21 09:52:22 +0000 | |
commit | 8933a803948acfa0f99f7f5bd9c07faef302e4ec (patch) | |
tree | 615d7f5e7f9733e798a132cbf8eaaae9a5f8be88 | |
parent | Perform Kerberos calls even for invalid users to prevent leaking information (diff) | |
download | wireguard-openbsd-8933a803948acfa0f99f7f5bd9c07faef302e4ec.tar.xz wireguard-openbsd-8933a803948acfa0f99f7f5bd9c07faef302e4ec.zip |
Fix memory leaks. From Andrey Matveev <evol at online dot ptt dot ru>,
thanks!
-rw-r--r-- | sbin/ipsecctl/ipsecctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c index 232c37dc56f..c0a5cd1dc23 100644 --- a/sbin/ipsecctl/ipsecctl.c +++ b/sbin/ipsecctl/ipsecctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.c,v 1.34 2005/11/13 18:28:03 hshoexer Exp $ */ +/* $OpenBSD: ipsecctl.c,v 1.35 2005/11/21 09:52:22 hshoexer Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -366,6 +366,8 @@ ipsecctl_get_rules(struct ipsecctl *ipsec) ipsecctl_add_rule(ipsec, rule); } + + free(buf); } void @@ -457,6 +459,8 @@ ipsecctl_show_sas(int opts) break; pfkey_print_sa(msg, opts); } + + free(buf); } __dead void |