aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-31 00:29:54 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-31 00:29:54 +0000
commita5546ceb6d2d253989a99dc0fde3e21dbbc07590 (patch)
treee3a9cfc3f342db42f31e9aa722dbfb4ad9e54c94
parenta17d57a769c3bae178800759678cb940a54e5e17 (diff)
downloadperl-URPM-a5546ceb6d2d253989a99dc0fde3e21dbbc07590.tar
perl-URPM-a5546ceb6d2d253989a99dc0fde3e21dbbc07590.tar.gz
perl-URPM-a5546ceb6d2d253989a99dc0fde3e21dbbc07590.tar.bz2
perl-URPM-a5546ceb6d2d253989a99dc0fde3e21dbbc07590.tar.xz
perl-URPM-a5546ceb6d2d253989a99dc0fde3e21dbbc07590.zip
fix memleak in URPM::Pkg->evr()
-rw-r--r--NEWS1
-rw-r--r--URPM.xs1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5567ca2..5ff952e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
Version 4.18 - 31 March 2011, by Per Øyvind Karlsen
+- fix memleak in URPM::Pkg->evr()
- drop URPM::DB::close() and teardown properly by calling rpmcliFini() at exit
- fix odd i586 specific bug triggering segfault with -fstack-protector (#61690)
diff --git a/URPM.xs b/URPM.xs
index 616f2d8..527a46e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -431,6 +431,7 @@ get_evr(URPM__Package pkg) {
} else if(pkg->h) {
rpmds ds = rpmdsThis(pkg->h, RPMTAG_PROVIDEVERSION, 0);
evr = rpmdsEVR(ds);
+ ds = rpmdsFree(ds);
}
return evr;
}