Re: [libvirt] [PATCH 2/2] virSecurityDACChownListFree: Don't leak list->items array

2018-03-13 Thread Peter Krempa
On Tue, Mar 13, 2018 at 14:37:05 +0100, Michal Privoznik wrote: > We're freeing individual items in it but not the array itself. > > ==19200== 40 bytes in 1 blocks are definitely lost in loss record 847 of 1,059 > ==19200==at 0x4C2D12F: realloc (vg_replace_malloc.c:785) > ==19200==by

[libvirt] [PATCH 2/2] virSecurityDACChownListFree: Don't leak list->items array

2018-03-13 Thread Michal Privoznik
We're freeing individual items in it but not the array itself. ==19200== 40 bytes in 1 blocks are definitely lost in loss record 847 of 1,059 ==19200==at 0x4C2D12F: realloc (vg_replace_malloc.c:785) ==19200==by 0x52C5532: virReallocN (viralloc.c:245) ==19200==by 0x52C5628: virExpandN