From 2d7375cec38fb2af52183a537b51b2b0a30cacd3 Mon Sep 17 00:00:00 2001 From: dbj Date: Tue, 10 Oct 2006 01:41:14 +0000 Subject: [PATCH] free specfile structure once it has been applied --- usr.sbin/makefs/walk.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/makefs/walk.c b/usr.sbin/makefs/walk.c index 693c92e18b0a..c3962bfb6a51 100644 --- a/usr.sbin/makefs/walk.c +++ b/usr.sbin/makefs/walk.c @@ -1,4 +1,4 @@ -/* $NetBSD: walk.c,v 1.20 2006/10/10 01:39:10 dbj Exp $ */ +/* $NetBSD: walk.c,v 1.21 2006/10/10 01:41:14 dbj Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -41,7 +41,7 @@ #include #if defined(__RCSID) && !defined(__lint) -__RCSID("$NetBSD: walk.c,v 1.20 2006/10/10 01:39:10 dbj Exp $"); +__RCSID("$NetBSD: walk.c,v 1.21 2006/10/10 01:41:14 dbj Exp $"); #endif /* !__lint */ #include @@ -210,6 +210,8 @@ apply_specfile(const char *specfile, const char *dir, fsnode *parent) /* merge in the changes */ apply_specdir(dir, root, parent); + + free_nodes(root); } static void