[Libguestfs] [libhivex] Memory leak in hivex_node_delete_child?

Mahmoud Al-Qudsi mqudsi at neosmart.net
Tue Nov 11 11:57:55 UTC 2014


> On Nov 11, 2014, at 4:41 AM, Pino Toscano <ptoscano at redhat.com> wrote:
> 
> Hi,
> 
> It seems like rather hivex_node_delete_child leaks the "blocks" array 
> returned by _hivex_get_children every time. The patch should be easy, 
> would you be able to give it a try to check whether it fixes the leak in 
> your application?

Awesome, thanks!

It does indeed look like the right (and easy) fix. I was concentrating my effort on the exceptions as it didn't occur to me it was in the normal course of action!

Thanks. I'll test it and be back. 

Cheers,

Mahmoud




More information about the Libguestfs mailing list