Strace shows that the pipe is not closed when the compressor child exists:
$ strace -e trace=open,dup,close,pipe apt-ftparchive package. > /dev/null open("./homer_clone_444.deb", O_RDONLY) = 5 pipe([261, 262]) = 0 close(262) = 0 --- SIGCHLD (Child exited) @ 0 (0) ---
It seems like "AutoClose" in FileFd is set to false for compressed images which leads to "FileFd::Close()" not closing the internal iFD which then leads to this leak.
Strace shows that the pipe is not closed when the compressor child exists:
$ strace -e trace=open, dup,close, pipe apt-ftparchive package. > /dev/null /homer_ clone_444. deb", O_RDONLY) = 5
open(".
pipe([261, 262]) = 0
close(262) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
It seems like "AutoClose" in FileFd is set to false for compressed images which leads to "FileFd::Close()" not
closing the internal iFD which then leads to this leak.