summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-03-10 00:09:43 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-03-10 00:09:43 +0000
commitec61250c87fe4cf06b6ddde37a8ff8e8bb929624 (patch)
tree703a74396a6f2d9cf27bd53f35e0479eba195044
parente86ab57db2282b1b5835e8c030e26fb89687fd33 (diff)
Plug memory leak on SIGHUP. From Patrick Latifi.
-rw-r--r--usr.sbin/ifstated/ifstated.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c
index 6aaf21381e6..2b00a32e241 100644
--- a/usr.sbin/ifstated/ifstated.c
+++ b/usr.sbin/ifstated/ifstated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifstated.c,v 1.14 2004/03/07 08:49:05 mcbride Exp $ */
+/* $OpenBSD: ifstated.c,v 1.15 2004/03/10 00:09:42 mcbride Exp $ */
/*
* Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org>
@@ -607,6 +607,7 @@ clear_config(struct ifsd_config *oconf)
}
remove_action(oconf->always.init, &oconf->always);
remove_action(oconf->always.always, &oconf->always);
+ free(oconf);
}
void