Re: [PATCH 4/6] ch: Free @iothreads array in virCHProcessSetupIOThreads()

2025-03-13 Thread Peter Krempa
On Thu, Mar 13, 2025 at 14:44:36 +0100, Michal Privoznik wrote: > When the CH driver starts a domain virCHProcessSetupIOThreads() > is called eventually which in turn calls > virCHMonitorGetIOThreads(). The latter returns an array of > iothreads which is never freed leading to a memleak: > > 130 (

[PATCH 4/6] ch: Free @iothreads array in virCHProcessSetupIOThreads()

2025-03-13 Thread Michal Privoznik
When the CH driver starts a domain virCHProcessSetupIOThreads() is called eventually which in turn calls virCHMonitorGetIOThreads(). The latter returns an array of iothreads which is never freed leading to a memleak: 130 (104 direct, 26 indirect) bytes in 1 blocks are definitely lost in loss reco