[libvirt] [PATCH] leaseshelper: fix another creash

Pavel Hrdina phrdina at redhat.com
Mon Jun 16 12:32:54 UTC 2014


On 16.6.2014 14:30, Pavel Hrdina wrote:
> We create a 'lease_new' when we are adding new lease entry, then later
> in the code we add the 'lease_new' into a 'leases_array_new' which
> leades into the creash because we double free the 'lease_new'.
> 
> To prevent the double free we set the 'lease_new' to NULL after
> successful append into the 'leases_array_new'.
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---

s/creash/crash/ :)




More information about the libvir-list mailing list