Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!ihnet!tjr From: tjr@ihnet.ATT.COM (Tom Roberts) Newsgroups: comp.sys.ibm.pc Subject: Turbo C realloc and malloc and free Message-ID: <564@ihnet.ATT.COM> Date: Thu, 27-Aug-87 14:55:23 EDT Article-I.D.: ihnet.564 Posted: Thu Aug 27 14:55:23 1987 Date-Received: Sat, 29-Aug-87 10:35:47 EDT Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 15 Keywords: turboc 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