summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-11 15:56:20 -0700
committerAnas Nashif <anas.nashif@intel.com>2013-02-02 16:44:16 -0800
commitc2e3fee50eeb1a12bb01d605b92886f767878feb (patch)
tree6640b18530d64f8ed22f7b367a1ebf7529e23d70 /lib
parent5a9a2a4a85bf470a34fde318edea153db8fc577d (diff)
downloadrpm-c2e3fee50eeb1a12bb01d605b92886f767878feb.tar.gz
rpm-c2e3fee50eeb1a12bb01d605b92886f767878feb.tar.bz2
rpm-c2e3fee50eeb1a12bb01d605b92886f767878feb.zip
add packaging files
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmte.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 6afd69e97..af8ce4877 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -730,6 +730,8 @@ static int rpmteClose(rpmte te, int reset_fi)
case TR_ADDED:
if (te->fd) {
rpmtsNotify(te->ts, te, RPMCALLBACK_INST_CLOSE_FILE, 0, 0);
+ if (te->fd) /* not yet closed */
+ Fclose(te->fd);
te->fd = NULL;
}
break;