summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-02-20 02:20:58 +0000
committerewt <devnull@localhost>1997-02-20 02:20:58 +0000
commit6b5a82caab0555e265204b7112826f3beec86579 (patch)
tree372e6b51a0fec2f7fae0c47eb21a7ef8fbcfbd6a /lib
parentfc3a2d33a9ae4179ab95d0b02add105c56dc288a (diff)
downloadrpm-6b5a82caab0555e265204b7112826f3beec86579.tar.gz
rpm-6b5a82caab0555e265204b7112826f3beec86579.tar.bz2
rpm-6b5a82caab0555e265204b7112826f3beec86579.zip
frees FILEUSERNAME and FILEGROUPNAME lists
CVS patchset: 1448 CVS date: 1997/02/20 02:20:58
Diffstat (limited to 'lib')
-rw-r--r--lib/verify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/verify.c b/lib/verify.c
index 4186647b4..ac00d5d97 100644
--- a/lib/verify.c
+++ b/lib/verify.c
@@ -151,6 +151,7 @@ int rpmVerifyFile(char * prefix, Header h, int filenum, int * result,
NULL)) {
if (strcmp(unameList[filenum], uidToUname(sb.st_uid)))
*result |= RPMVERIFY_USER;
+ free(unameList);
} else if (headerGetEntry(h, RPMTAG_FILEUIDS, NULL, (void **) &uidList,
&count)) {
if (uidList[filenum] != sb.st_uid)
@@ -167,6 +168,7 @@ int rpmVerifyFile(char * prefix, Header h, int filenum, int * result,
NULL)) {
if (strcmp(gnameList[filenum], gidToGname(sb.st_gid)))
*result |= RPMVERIFY_GROUP;
+ free(gnameList);
} else if (headerGetEntry(h, RPMTAG_FILEGIDS, NULL, (void **) &gidList,
&count)) {
if (gidList[filenum] != sb.st_gid)