delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/11/11:24:01

Xref: news2.mv.net comp.os.msdos.djgpp:3691
From: Rikard Thunberg <thunberg AT algonet DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: calloc() and free() - help!
Date: Fri, 10 May 1996 13:29:33 +0200
Organization: Informia
Lines: 16
Message-ID: <3193289D.6BEA@algonet.se>
NNTP-Posting-Host: aristotle.algonet.se
NNTP-Posting-User: a37bfb8671f5d77b3
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm using MSDOS/WIN95.
If I use calloc() to allocate memory I have to 
release the memory with free() before my program quit, right?
 
How do I verify that my program have released all memory I have allocated?

I have tried following procedure, but without success:
mem/c >mem1.log
my_program.exe
mem/c >mem2.log

mem1.log is equivalent of mem2.log even if I don't use free() in my program! 

please help!

/Rikard Thunberg, thunberg AT algonet DOT se

- Raw text -


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