aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ɓukasz P. Michalik <lmi@ift.uni.wroc.pl> 2012-04-14 12:34:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-04-14 16:25:55 +0100
commitc9e0c08a43cd63fe3a6315c687499116d90b2864 (patch)
treecff3b88fc0658f99b17fa5fa992f9c3fc0726949
parentdbe818536176b15eb9588e334711cf2dfad4a776 (diff)
downloadpaludis-c9e0c08a43cd63fe3a6315c687499116d90b2864.tar.gz
paludis-c9e0c08a43cd63fe3a6315c687499116d90b2864.tar.xz
fix fd leak when merging to pbin
-rw-r--r--paludis/tar_extras.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/tar_extras.cc b/paludis/tar_extras.cc
index da88324..b3fbb6d 100644
--- a/paludis/tar_extras.cc
+++ b/paludis/tar_extras.cc
@@ -109,6 +109,8 @@ paludis_tar_extras_add_file(PaludisTarExtras * const extras, const std::string &
if (ARCHIVE_OK != archive_read_finish(disk_archive))
throw MergerError("archive_read_finish failed");
}
+ else
+ close(fd);
archive_entry_free(entry);
}