> KOSAKI Motohiro <kosaki.motohiro@gmail.com> writes: > >> realloc (p, 0) behavior is an implementation defined > > No. Interesting. So, I reread http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_400.htm. If we don't agree it is implementation defined. realloc(p, 0) should behave as BSD. then your patch is incorrect. no?