diff --git a/lib/transaction_commit.c b/lib/transaction_commit.c index 27500aa8..bedd6285 100644 --- a/lib/transaction_commit.c +++ b/lib/transaction_commit.c @@ -104,6 +104,12 @@ xbps_transaction_commit(struct xbps_handle *xhp) goto out; } + /* + * After all downloads are finished, clear the connection cache + * to avoid file descriptor leaks (see #303) + */ + xbps_fetch_unset_cache_connection(); + /* * Collect files in the transaction and find some issues * like multiple packages installing the same file.