summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg>2009-08-16 21:10:53 +0000
committerjoerg <joerg>2009-08-16 21:10:53 +0000
commita1ef99df30c24b999da97bfbda92a41046675d16 (patch)
tree2e1c6183ec230c3fd1504d85762fc54377f3a9dc /pkgtools
parentbc33648b3e8cf795b27d5831a3350d7915ac0ad2 (diff)
downloadpkgsrc-a1ef99df30c24b999da97bfbda92a41046675d16.tar.gz
Don't leak the config file.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/lib/parse-config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/lib/parse-config.c b/pkgtools/pkg_install/files/lib/parse-config.c
index 54662d9040a..22cd0a776eb 100644
--- a/pkgtools/pkg_install/files/lib/parse-config.c
+++ b/pkgtools/pkg_install/files/lib/parse-config.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse-config.c,v 1.8 2009/08/16 21:10:15 joerg Exp $ */
+/* $NetBSD: parse-config.c,v 1.9 2009/08/16 21:10:53 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: parse-config.c,v 1.8 2009/08/16 21:10:15 joerg Exp $");
+__RCSID("$NetBSD: parse-config.c,v 1.9 2009/08/16 21:10:53 joerg Exp $");
/*-
* Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -145,6 +145,8 @@ parse_pkg_install_conf(void)
*var->var = config_tmp_variables[i];
config_tmp_variables[i] = NULL;
}
+
+ fclose(fp);
}
void