From e79f9bb22375fd72330b534e17dcd3ceace432e8 Mon Sep 17 00:00:00 2001 From: Herman Semenoff Date: Wed, 8 Apr 2026 13:09:52 +0300 Subject: apt-pkg: methods: fixed many minor memleaks Static analysis has shown that there are many minor memleaks. --- apt-pkg/dirstream.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'apt-pkg/dirstream.cc') diff --git a/apt-pkg/dirstream.cc b/apt-pkg/dirstream.cc index ef9f08ebc..b71a34d3e 100644 --- a/apt-pkg/dirstream.cc +++ b/apt-pkg/dirstream.cc @@ -53,6 +53,7 @@ bool pkgDirStream::DoItem(Item &Itm,int &Fd) return _error->Errno("fchown",_("Failed to write file %s"), Itm.Name); } Fd = iFd; + close(iFd); return true; } -- cgit v1.2.3-70-g09d2