[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Libvir] Re: Lxc conf patch
- From: Daniel Veillard <veillard redhat com>
- To: Dave Leskovec <dlesko linux vnet ibm com>
- Cc: libvir-list redhat com
- Subject: Re: [Libvir] Re: Lxc conf patch
- Date: Tue, 1 Apr 2008 09:01:08 -0400
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 redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]