From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,a6c65cbc407987fe
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2002-11-18 08:20:09 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!teaser.fr!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: dynamic multithreading
Date: 18 Nov 2002 17:20:07 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References:
<3DD8DC43.AC6CAFBB@canal-plus.fr>
NNTP-Posting-Host: avelizy-103-1-4-64.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader11.wanadoo.fr 1037636407 23545 80.11.102.64 (18 Nov 2002
16:20:08 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 18 Nov 2002 16:20:08 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92
Xref: archiver1.google.com comp.lang.ada:31050
Date: 2002-11-18T16:20:08+00:00
List-Id:
Dmitry A. Kazakov writes:
> It should not leak in cases:
>
> 1. Stack allocation
>
> declare
> TV : T;
> begin
> ...
> end;
>
> 2. Heap allocation
>
> TV_Ptr := new T;
> ...
> Free (TV_Ptr);
>
> 3. Aggregation
>
> type Server is ... record
> ...
> TV : T;
> end record;
Ok ! This is indeed what is expected (new + Free).
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595