[libvirt] [PATCH] fix memory leak in daemonUnixSocketPaths

Michal Privoznik mprivozn at redhat.com
Tue Jun 13 11:55:24 UTC 2017

On 06/13/2017 11:02 AM, Erik Skultety wrote:
> On Mon, Jun 12, 2017 at 02:02:20AM -0400, Yi Wang wrote:
>> The @rundir is allocated in virGetUserRuntimeDirectory, may lost
>> when virFileMakePath failed.
> ACK. I slightly reworded the commit message and pushed.

Funny, I have a similar patch on my branch:


How about instead of putting VIR_FREE() at each exit path, we have just
one exit path (= use more gotos) and have VIR_FREE() just once.


More information about the libvir-list mailing list