Re: Re: Lxc conf patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 31, 2008 at 03:24:22PM -0700, Dave Leskovec wrote:
> Meant to include this in the last reply - Here's a patch for the lxcFreeVMs() issue:
> 
> > 
> > This breaks doesn't it?  After calling lxcFreeVM(), curVm is no longer valid
> > since it was free()'d.  Need to pull out the next pointer before lxcFreeVM().

  yup, obviously access to freed memory, my bad ...

>      while (curVm) {
> -        lxcFreeVM(curVm);
>          nextVm = curVm->next;
> +        lxcFreeVM(curVm);
>          curVm = nextVm;

  Applied and commited, 

    thanks !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]