summaryrefslogtreecommitdiffstats
path: root/RPM4/src
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/src')
-rw-r--r--RPM4/src/RPM4.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index f03fdc0..bbbe741 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -715,6 +715,7 @@ expand(name)
PPCODE:
const char * value = rpmExpand(name, NULL);
XPUSHs(sv_2mortal(newSVpv(value, 0)));
+ free(value);
void
expandnumeric(name)
@@ -807,6 +808,7 @@ platformscore(platform)
void
buildhost()
+ PREINIT:
PPCODE:
XPUSHs(sv_2mortal(newSVpv(buildHost(),0)));