Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!husc6!m2c!wpi!pawn From: pawn@wpi.wpi.edu (Kevin Goroway) Newsgroups: comp.sys.amiga.tech Subject: De-Allocating Memory? Keywords: Lattice 5.04? Message-ID: <12750@wpi.wpi.edu> Date: 8 May 90 03:49:05 GMT Organization: Worcester Polytechnic Institute, Worcester, Mass. Lines: 24 I think I need some quick tutoring as to how one deallocates memory: I'm doing an awful lot of mallocs to create a lot of linked lists... when I free them using Freeit(object) struct obj *object; { if (object->next != NULL) Freeit(object->next); free(object); } I don't get any memory back... I tried using lattices rbrk() with no luck... Also, I'd love to use AllocRemember, but the code in the Intuition Manual and Rom Kernal just don't work. (crash...) Thanks... -- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= | Worcester Polytechnic Institute | "It happens sometimes, people just | | Pawn@wpi.wpi.edu Pawn@wpi.bitnet | explode, natural causes."-Repo Man | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=