Re: [libvirt] [PATCH] virDomainHostdevDefFree: Don't leak privateData

2016-07-07 Thread Erik Skultety
On 07/07/16 11:43, Michal Privoznik wrote: > After 27726d8c21 a privateData is allocated in > virDomainHostdevDefAlloc(). However, the counter part - freeing > them in Free() is missing which leads to the following memory > leak: > > ==6489== 24 bytes in 1 blocks are definitely lost in loss record

[libvirt] [PATCH] virDomainHostdevDefFree: Don't leak privateData

2016-07-07 Thread Michal Privoznik
After 27726d8c21 a privateData is allocated in virDomainHostdevDefAlloc(). However, the counter part - freeing them in Free() is missing which leads to the following memory leak: ==6489== 24 bytes in 1 blocks are definitely lost in loss record 684 of 1,003 ==6489==at 0x4C2C070: calloc (vg_repl