cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/04/20:02:36

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory leak.
Date: Fri, 03 Oct 1997 10:08:00 -0400
Organization: Cornell University
Lines: 21
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <3434FC40.233A@cornell.edu>
References: <3 DOT 0 DOT 16 DOT 19971003101449 DOT 36e7aec2 AT hem1 DOT passagen DOT se>
NNTP-Posting-Host: 128
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Peter Palotas wrote:
> 
> Could someone please give me a complete description of what a memory leak
> really is?
> -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

void leak_some_memory(void)
{
 char *p = malloc(1024*1000);
 return;
}

int main(void)
{
 for(;;)
  leak_some_memory();

 return 0;
}

  -- Sinan

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019