aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-11 09:55:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-11 09:55:59 +0000
commit56dc88b6c4ccb09cbf552ddac4764c351ab4ead5 (patch)
tree97322cf3e5e21f20713866341dc086a0cc1b9b95
parent46254a55eced8372d55b4e2635561d7e94adc8a5 (diff)
downloadperl-URPM-56dc88b6c4ccb09cbf552ddac4764c351ab4ead5.tar
perl-URPM-56dc88b6c4ccb09cbf552ddac4764c351ab4ead5.tar.gz
perl-URPM-56dc88b6c4ccb09cbf552ddac4764c351ab4ead5.tar.bz2
perl-URPM-56dc88b6c4ccb09cbf552ddac4764c351ab4ead5.tar.xz
perl-URPM-56dc88b6c4ccb09cbf552ddac4764c351ab4ead5.zip
add missing free()
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index d04e01e..1d3afc3 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1443,6 +1443,7 @@ 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