aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-05-22 10:22:06 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-05-22 10:22:06 +0000
commitc627ba04cc39ef410ac350acd8ef5c1154a35a09 (patch)
tree9ca8cc3a084d3f0ea059d0cd06406d1d6ed6433e
parentf99797b0f2e637bf643b6a7e1187eace3160feaf (diff)
downloadperl-URPM-c627ba04cc39ef410ac350acd8ef5c1154a35a09.tar
perl-URPM-c627ba04cc39ef410ac350acd8ef5c1154a35a09.tar.gz
perl-URPM-c627ba04cc39ef410ac350acd8ef5c1154a35a09.tar.bz2
perl-URPM-c627ba04cc39ef410ac350acd8ef5c1154a35a09.tar.xz
perl-URPM-c627ba04cc39ef410ac350acd8ef5c1154a35a09.zip
Patch by Pascal Terjan to fix a FD leak (bug #22632)
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index b923648..9072b0f 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3453,6 +3453,7 @@ Urpm_verify_signature(filename)
rpmtsOpenDB(ts, O_RDONLY);
rpmtsSetVSFlags(ts, RPMVSF_DEFAULT);
rc = rpmReadPackageFile(ts, fd, filename, &h);
+ fdClose(fd);
*result = '\0';
switch(rc) {
case RPMRC_OK: