diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-11-21 09:52:23 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-11-21 09:52:23 +0000 |
commit | 05a8e96c4ceba5cc9034621a220cc278c80d602c (patch) | |
tree | 4bf380d1056ae1788208ce74cd168e18069bfa89 /sbin | |
parent | 577ae16af8e2c128bc28961efe4dcafa4ad6b9a7 (diff) |
Fix memory leaks. From Andrey Matveev <evol at online dot ptt dot ru>,
thanks!
Diffstat (limited to 'sbin')
-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 |