🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #681

Re: free behavior (was: Re: Out-of-bounds pointers)

#681
From: Henry Spencer
Date: Tue, 10 Oct 1989 17:04
8 lines
818 bytes
In article <17119@rpp386.cactus.org> jfh@rpp386.cactus.org (John F. Haugh II) writes:
>Doesn't free() insure the pointer remains valid until the next
>call to malloc()...

No.  Some Unix implementations guaranteed this; ANSI C does not.
-- 
A bit of tolerance is worth a  |     Henry Spencer at U of Toronto Zoology
megabyte of flaming.           | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
Technical Details
Message-ID: <1989Oct10.170456.6312@utzoo.uucp>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <1009@mtxinu.UUCP> <12570028@hpclwjm.HP.COM> <868@crdos1.crd.ge.COM> <217@bbxsda.UUCP> <11234@smoke.BRL.MIL> <17119@rpp386.cactus.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: free behavior (was: Re: Out-of-bounds pointers)
Message-ID: <1989Oct10.170456.6312@utzoo.uucp>
Organization: U of Toronto Zoology
References: <1009@mtxinu.UUCP> <12570028@hpclwjm.HP.COM> <868@crdos1.crd.ge.COM> <217@bbxsda.UUCP> <11234@smoke.BRL.MIL> <17119@rpp386.cactus.org>
Date: Tue, 10 Oct 89 17:04:56 GMT