From e9fe57d21a973a32460c6871e701981698f05d16 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 Dec 2008 15:52:52 +0000 Subject: 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 --- URPM.xs | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.1