Article View: comp.os.msdos.programmer
Article #7869Freeing memory in #pragma exit
From: William White
Date: Tue, 05 Sep 1995 11:52
Date: Tue, 05 Sep 1995 11:52
13 lines
1179 bytes
1179 bytes
Is it better to free all allocated memory from new & malloc()... by freeing
it with a #pragma exit function, or a regular function just before exit() is
called? Using the #pragma exit way, I've been getting some lockup in my
program... :(
---Will
+----------------------------------------------------------------------+
| William White ®¯ Yakima, WA. ®¯ Hi-Country Foods Corporation |
| Quality Assurance Lab Technician ®¯ Computer Analyst/Programmer |
| ** We make it, you drink it, you love it ** |
|Check out our new web page at http://www.wolfe.net/~hcfoods/index.html|
| For my Public PGP key, please finger me at wcw@wolfe.net |
+----------------------------------------------------------------------+
Technical Details
Message-ID:
<42hdl3$rkr@ratty.wolfe.net>Path:
arc1-ca.pugleaf.net!ratty.wolfe.net!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ratty.wolfe.net!usenet From: wcw@wolfe.net (William White) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Freeing memory in #pragma exit Date: 5 Sep 1995 11:52:02 GMT Organization: Hi-Country Foods Message-ID: <42hdl3$rkr@ratty.wolfe.net> NNTP-Posting-Host: yak-ts1-p08.wolfe.net X-Newsreader: NeoLogic News for OS/2 [version: 4.1 UNREGISTERED -84 days remaining]