summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/hoststated.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/hoststated/hoststated.c')
-rw-r--r--usr.sbin/hoststated/hoststated.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/hoststated.c b/usr.sbin/hoststated/hoststated.c
index ad5ba8366c0..c0ea8f8d7ef 100644
--- a/usr.sbin/hoststated/hoststated.c
+++ b/usr.sbin/hoststated/hoststated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststated.c,v 1.60 2007/11/25 20:01:10 reyk Exp $ */
+/* $OpenBSD: hoststated.c,v 1.61 2007/11/28 11:37:59 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -532,6 +532,8 @@ purge_tree(struct proto_tree *tree)
free(pn->key);
if (pn->value != NULL)
free(pn->value);
+ if (pn->label != 0)
+ pn_unref(pn->label);
free(pn);
}
free(proot);