From 05a8e96c4ceba5cc9034621a220cc278c80d602c Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Mon, 21 Nov 2005 09:52:23 +0000 Subject: Fix memory leaks. From Andrey Matveev , thanks! --- sbin/ipsecctl/ipsecctl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sbin') 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 * @@ -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 -- cgit v1.2.3