I'd be more worried about loss of data, unless the semantics were: malloc(new) + memcpy(old to new) + free(old)
You're right, of course :-)
Can I ask which platform does not have realloc() ?
It's a proprietary ARM architecture. Enrico