Article View: comp.sys.amiga.tech
Article #3509De-Allocating Memory?
From: Kevin Goroway
Date: Tue, 08 May 1990 03:49
Date: Tue, 08 May 1990 03:49
24 lines
1247 bytes
1247 bytes
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 |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Technical Details
Message-ID:
<12750@wpi.wpi.edu>Path:
arc1-ca.pugleaf.net!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!pawnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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