aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-12-09 15:52:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-12-09 15:52:52 +0000
commite9fe57d21a973a32460c6871e701981698f05d16 (patch)
tree43d012f5eb93ebdcc49acc4d6da2b458a369cabd
parent4f1e1255413c5282ef5f8562be611729a0ffeb70 (diff)
downloadperl-URPM-e9fe57d21a973a32460c6871e701981698f05d16.tar
perl-URPM-e9fe57d21a973a32460c6871e701981698f05d16.tar.gz
perl-URPM-e9fe57d21a973a32460c6871e701981698f05d16.tar.bz2
perl-URPM-e9fe57d21a973a32460c6871e701981698f05d16.tar.xz
perl-URPM-e9fe57d21a973a32460c6871e701981698f05d16.zip
do free the ts after user, this is especially needed since rpmVerifySignature
(wrongly) called in rpmReadPackageFile can open the rpmdb which won't get closed if ts is not closed
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index b4858e5..2fb9181 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1291,6 +1291,7 @@ update_header(char *filename, URPM__Package pkg, int keep_all_tags, int vsflags)
pkg->flag &= ~FLAG_NO_HEADER_FREE;
/*if (!keep_all_tags) drop_tags(&pkg->h);*/
+ rpmtsFree(ts);
return 1;
}
rpmtsFree(ts);