aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--URPM.xs2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a3f07a0..4100087 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- compilation fixes on rpm < 4.4.8
+
Version 1.70 - 9 August 2007, by Pascal "Pixel" Rigaux
- compilation fixes on rpm < 4.4.8
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