Article View: comp.std.c
Article #4050Re: Is malloc()ed storage freed upon program termination?
From: Soenke Behrens
Date: Tue, 19 Sep 1995 22:29
Date: Tue, 19 Sep 1995 22:29
16 lines
1049 bytes
1049 bytes
jimh@earth.execpc.com (Jim Hennessy) wrote: >Does the C standard guarantee that storage allocated by malloc() is >freed during program termination? If so, where? I can't find it. Nope, this is not guaranteed. You _have_ to free all allocated memory yourself. A good strategy would be to work out (before you start coding) who is allowed to allocate memory, and who frees it again. A tool like memcheck does wonders, too. This discussion really belongs ElseWhere, though :) Soenke -- I don't know what it is he's doing, it must be art
Technical Details
Message-ID:
<811549923.10778@contech.demon.co.uk>Path:
arc1-ca.pugleaf.net!dispatch.news.demon.net!demon!contech.demon.co.ukReferences:
<43l16d$3dp@homer.alpha.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!dispatch.news.demon.net!demon!contech.demon.co.uk From: sbehrens@contech.demon.co.uk (Soenke Behrens) Newsgroups: comp.std.c Subject: Re: Is malloc()ed storage freed upon program termination? Date: Tue, 19 Sep 1995 22:29:59 GMT Message-ID: <811549923.10778@contech.demon.co.uk> References: <43l16d$3dp@homer.alpha.net> Reply-To: sbehrens@contech.demon.co.uk NNTP-Posting-Host: contech.demon.co.uk X-NNTP-Posting-Host: contech.demon.co.uk X-Newsreader: Forte Agent .99b.112