aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 3 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index cc07e14..965cecf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -789,11 +789,11 @@ return_files(Header header, int filter_mode) {
he_dirIndexes->tag = RPMTAG_DIRINDEXES;
if(headerGet(header, he_dirIndexes, 0))
- dirNames = he_dirNames->p.argv;
+ dirIndexes = he_dirIndexes->p.ui32p;
he_dirNames->tag = RPMTAG_DIRNAMES;
if(headerGet(header, he_dirNames, 0))
- dirIndexes = he_dirIndexes->p.ui32p;
+ dirNames = he_dirNames->p.argv;
if (!baseNames || !dirNames || !dirIndexes) {
@@ -827,6 +827,7 @@ return_files(Header header, int filter_mode) {
}
baseNames = _free(baseNames);
+ dirIndexes = _free(dirIndexes);
dirNames = _free(dirNames);
list = _free(list);
}