[Top][All Lists]

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

Re: proper realloc(p,0) behavior?

From: Eric Blake
Subject: Re: proper realloc(p,0) behavior?
Date: Fri, 25 Mar 2011 07:59:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9

On 03/25/2011 07:57 AM, Paolo Bonzini wrote:
> On 03/25/2011 02:53 PM, Eric Blake wrote:
>> Would anyone object to this patch?
> Not me, but it should be documented in capital letters in NEWS...

diff --git i/NEWS w/NEWS
index 767d0ab..d19ac13 100644
--- i/NEWS
+++ w/NEWS
@@ -12,6 +12,10 @@ User visible incompatible changes

 Date        Modules         Changes

+2011-03-25  xmalloc         xrealloc(p, 0) now calls xalloc_die instead of
+                            freeing p, to keep the guarantee that x*alloc
+                            never returns NULL.
 2011-03-08  regex-quote     The last argument is no longer an 'int cflags'
                             but instead a pointer to a previously
                             'struct regex_quote_spec'.
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]