closedir() bug report (SVr3.1)

Andrew ValenciaSeattle vandys at hpcupt1.HP.COM
Wed Oct 25 02:29:11 AEST 1989


/ hpcupt1:comp.bugs.sys5 / rayan at cs.toronto.edu (Rayan Zachariassen) /  7:34 pm  Oct 23, 1989 /
>stored within it.  The semantics of free doesn't guarantee data
>integrity of freed memory.

>From some fairly System-Vish man pages for malloc/free:

	The argument to free is a pointer to a block previously allocated
	by malloc; after free is performed this space is made available
	for further allocation, but its contents are left undisturbed.
				=====================================

You can claim that this is WRONG, but for compatibility I'd recommend not
going against the grain with alternative malloc/free implementations.

					Andy



More information about the Comp.bugs.sys5 mailing list