aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-09 15:24:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-09 15:24:42 +0000
commit13ddeea79ae17e076cc7643976bf26a0383fc72b (patch)
treebfb8041b897a44f737ae5622d07946e2ddc0a56e /URPM.xs
parent56c19b8782fdc08eae4ce2fa5487211424cdc329 (diff)
downloadperl-URPM-13ddeea79ae17e076cc7643976bf26a0383fc72b.tar
perl-URPM-13ddeea79ae17e076cc7643976bf26a0383fc72b.tar.gz
perl-URPM-13ddeea79ae17e076cc7643976bf26a0383fc72b.tar.bz2
perl-URPM-13ddeea79ae17e076cc7643976bf26a0383fc72b.tar.xz
perl-URPM-13ddeea79ae17e076cc7643976bf26a0383fc72b.zip
- compilation fixes on rpm < 4.4.8
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 500d719..1ec5eb4 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1395,11 +1395,11 @@ Pkg_is_arch_compat(pkg)
#ifdef RPM_448
platform = rpmExpand(arch, "-%{_real_vendor}-%{_target_os}%{?_gnu}", NULL);
RETVAL = rpmPlatformScore(platform, NULL, 0);
+ _free(platform);
#else
RETVAL = rpmMachineScore(RPM_MACHTABLE_INSTARCH, arch);
#endif
*eos = '@';
- _free(platform);
} else if (pkg->h && headerIsEntry(pkg->h, RPMTAG_SOURCERPM)) {
char *arch = get_name(pkg->h, RPMTAG_ARCH);
#ifdef RPM_448