summaryrefslogtreecommitdiff
path: root/install.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-10-21 01:22:12 +0000
committerewt <devnull@localhost>1996-10-21 01:22:12 +0000
commit1e63efe01ed81252882b188d405554f07b3cf97b (patch)
tree1c123207fa6cd74bdedb0e07fb1c2d6541b56fc3 /install.c
parente513460a43c3a25b3365b98191ff7dccac66a4c7 (diff)
downloadlibrpm-tizen-1e63efe01ed81252882b188d405554f07b3cf97b.tar.gz
librpm-tizen-1e63efe01ed81252882b188d405554f07b3cf97b.tar.bz2
librpm-tizen-1e63efe01ed81252882b188d405554f07b3cf97b.zip
1) free binaryHeaders w/ done with installs
2) free rpmdep structures in both install and uninstall CVS patchset: 1118 CVS date: 1996/10/21 01:22:12
Diffstat (limited to 'install.c')
-rw-r--r--install.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.c b/install.c
index abd6a60f2..ff8f39ba7 100644
--- 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");