[comp.sys.ibm.pc] Turbo C realloc and malloc and free

tjr@ihnet.ATT.COM (Tom Roberts) (08/27/87)

In Turbo C (Large memory model), the following will clobber memory 
(re-boot time):

	free((char *)0);

This is highly annoying, as it is a no-op on the UNIX systems I have used.

Note that my UNIX SVr2 manual says the results are "undefined" for this call,
because the argument to free is not a pointer to a block previously allocated
by malloc().

I suspect that this is also the problem with the posted "realloc()" problem.

Tom Roberts
ihnp4!ihnet!tjr