1) free binaryHeaders w/ done with installs
authorewt <devnull@localhost>
Mon, 21 Oct 1996 01:22:12 +0000 (01:22 +0000)
committerewt <devnull@localhost>
Mon, 21 Oct 1996 01:22:12 +0000 (01:22 +0000)
2) free rpmdep structures in both install and uninstall

CVS patchset: 1118
CVS date: 1996/10/21 01:22:12

install.c

index abd6a60..ff8f39b 100644 (file)
--- a/install.c
+++ b/install.c
@@ -235,6 +235,8 @@ int doInstall(char * rootdir, char ** argv, char * location, int installFlags,
                stopInstall = 1;
            }
 
+           rpmdepDone(rpmdep);
+
            if (!stopInstall && conflicts) {
                fprintf(stderr, "failed dependencies:\n");
                printDepProblems(stderr, conflicts, numConflicts);
@@ -256,6 +258,9 @@ int doInstall(char * rootdir, char ** argv, char * location, int installFlags,
     for (i = 0; i < numTmpPackages; i++)
        unlink(tmpPackages[i]);
 
+    for (i = 0; i < numBinaryPackages; i++) 
+       freeHeader(binaryHeaders[i]);
+
     if (db) rpmdbClose(db);
 
     return numFailed;
@@ -336,6 +341,8 @@ int doUninstall(char * rootdir, char ** argv, int uninstallFlags,
            stopUninstall = 1;
        }
 
+       rpmdepDone(rpmdep);
+
        if (!stopUninstall && conflicts) {
            fprintf(stderr, "removing these packages would break "
                            "dependencies:\n");