diff options
author | joerg <joerg> | 2008-05-23 15:36:48 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-05-23 15:36:48 +0000 |
commit | 3b14f625b65a8afe34f228724628d2caa2af0ad3 (patch) | |
tree | e6a6e2e93d7c09476b1b7f4a7939b756f71e01b7 | |
parent | 2809db9cbeb15e0f8e6895eb3899085e234d0291 (diff) | |
download | pkgsrc-3b14f625b65a8afe34f228724628d2caa2af0ad3.tar.gz |
Make sure to close the archive when not all required files where found.
-rw-r--r-- | pkgtools/pkg_install/files/info/perform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/info/perform.c b/pkgtools/pkg_install/files/info/perform.c index 33f1aa0f29b..48615ecca2a 100644 --- a/pkgtools/pkg_install/files/info/perform.c +++ b/pkgtools/pkg_install/files/info/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.46.2.1 2008/04/26 17:44:23 joerg Exp $ */ +/* $NetBSD: perform.c,v 1.46.2.2 2008/05/23 15:36:48 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -17,7 +17,7 @@ #if 0 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp"; #else -__RCSID("$NetBSD: perform.c,v 1.46.2.1 2008/04/26 17:44:23 joerg Exp $"); +__RCSID("$NetBSD: perform.c,v 1.46.2.2 2008/05/23 15:36:48 joerg Exp $"); #endif #endif @@ -236,7 +236,7 @@ read_meta_data_from_archive(struct archive *archive) } if (found_required != 0) { free_pkg_meta(meta); - return NULL; + meta = NULL; } archive_read_finish(archive); |