From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Thu, 15 Feb 2001 15:08:15 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: RE: O_TEMPORARY Message-ID: <3A8BF0DF.22481.11FDABE@localhost> In-reply-to: References: <3A8A98EE DOT 30071 DOT A8D978 AT localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Given that the dup() code makes two entries point to the same > structure, shouldn't you look for other entries pointing > to the structure you're about to free() and zero them to > avoid leaving them pointing into the Great Void(tm)? In that case, a decremented ref_count will still be > 1 and the structure won't be freed. Mark