From cb0d3c339c543a8a33c6a9bc2c99e94c52b27f35 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Dec 1996 20:25:36 +0000 Subject: [PATCH] fixed dbiFreeIndex() in rpmInstallPackage() to be called only when it was needed CVS patchset: 1216 CVS date: 1996/12/06 20:25:36 --- lib/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install.c b/lib/install.c index 62ac75c..7effe5a 100644 --- a/lib/install.c +++ b/lib/install.c @@ -280,9 +280,9 @@ int rpmInstallPackage(char * rootdir, rpmdb db, int fd, char * location, } *intptr++ = 0; } - } - dbiFreeIndexRecord(matches); + dbiFreeIndexRecord(matches); + } fileList = NULL; if (headerGetEntry(h, RPMTAG_FILENAMES, &type, (void **) &fileList, -- 2.7.4