From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,db434bb21154c2b2,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-17 11:07:12 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: felix@engemann.com (Felix Engemann) Newsgroups: comp.lang.ada Subject: unchecked_deallocation Date: 17 Jul 2002 11:07:12 -0700 Organization: http://groups.google.com/ Message-ID: <7e428372.0207171007.6df0fdae@posting.google.com> NNTP-Posting-Host: 217.0.101.222 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1026929232 2876 127.0.0.1 (17 Jul 2002 18:07:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 Jul 2002 18:07:12 GMT Xref: archiver1.google.com comp.lang.ada:27199 Date: 2002-07-17T18:07:12+00:00 List-Id: Hi all, I'm just writing a generic double linked list package. I want to implement a function destroy_list, wich should return null and free the space. My question is: is all the space freed, if i set a pointer to the first node and then free the space with free(pointer_to_first_node) or do i have to delete and free from node to node, in order to free all the space ? Thanx Felix