diff options
author | joerg <joerg@pkgsrc.org> | 2009-08-16 21:10:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-08-16 21:10:53 +0000 |
commit | 1e91eeeb76755d08fce42af427180a360c3c17a8 (patch) | |
tree | 2e1c6183ec230c3fd1504d85762fc54377f3a9dc /pkgtools | |
parent | 2841c9455cc762bf9446b066836e68ee4495e3b9 (diff) | |
download | pkgsrc-1e91eeeb76755d08fce42af427180a360c3c17a8.tar.gz |
Don't leak the config file.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/lib/parse-config.c | 6 |
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 |