Re: [libvirt] PATCH: Fix virRealloc for zero-sized alloc

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

 



On Fri, Oct 10, 2008 at 07:18:44PM +0100, Daniel P. Berrange wrote:
> The change to use arrays instead of linked-lists exposed a tiny bug in
> the virReallocN function. The realloc() contract says that if size is
> zero, then its semantics are the same as free(). virReallocN wasn't
> matching this, instead returning failure, and not setting the original
> pointer to NULL as expected. I've just committed this patch to fix this
> bug which was causing test suite crashes

  yup looks just fine !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
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]