pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Don't leak the config f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1e60dfafe45f
branches: trunk
changeset: 563490:1e60dfafe45f
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Aug 16 21:10:53 2009 +0000
description:
Don't leak the config file.
diffstat:
pkgtools/pkg_install/files/lib/parse-config.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r c9d69ea065d7 -r 1e60dfafe45f pkgtools/pkg_install/files/lib/parse-config.c
--- a/pkgtools/pkg_install/files/lib/parse-config.c Sun Aug 16 21:10:14 2009 +0000
+++ b/pkgtools/pkg_install/files/lib/parse-config.c Sun Aug 16 21:10:53 2009 +0000
@@ -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@localhost>.
@@ -145,6 +145,8 @@
*var->var = config_tmp_variables[i];
config_tmp_variables[i] = NULL;
}
+
+ fclose(fp);
}
void
Home |
Main Index |
Thread Index |
Old Index