Re: [PATCH] ch: Avoid memleak in virCHDriverConfigDispose()

2025-09-13 Thread Peter Krempa via Devel
On Wed, Sep 10, 2025 at 09:31:44 +0200, Michal Privoznik via Devel wrote: > From: Michal Privoznik > > When virCHDriverConfig struct is initialized in > virCHDriverConfigNew() the 'configDir' member is allocated but > corresponding free is missing in virCHDriverConfigDispose(). > While at it, reo

[PATCH] ch: Avoid memleak in virCHDriverConfigDispose()

2025-09-10 Thread Michal Privoznik via Devel
From: Michal Privoznik When virCHDriverConfig struct is initialized in virCHDriverConfigNew() the 'configDir' member is allocated but corresponding free is missing in virCHDriverConfigDispose(). While at it, reorder the free calls to match the order in which they are declared in the struct so it'