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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cc05aeb5e0d8b475 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-15 02:10:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Free-ing memory: not springing leaks? Date: Mon, 15 Sep 2003 09:13:58 +0200 Organization: AdaCL Message-ID: <1604737.IP9mLNFTWU@linux1.krischik.com> References: <2TM8b.1013$Nb6.297@newsfep4-winn.server.ntli.net> <9JY8b.1963$WI3.25442@newsfep4-glfd.server.ntli.net> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1063616860 04 30013 QAbnV9UXSfYmMc 030915 09:07:40 X-Complaints-To: usenet-abuse@t-online.de X-ID: XHZXIvZHYeOQwke7PackTZGGUR+HJEIwn33eguheET52sviBdgogkf User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:42515 Date: 2003-09-15T09:13:58+02:00 List-Id: Simon Wright wrote: > chris writes: > >> I wrote a binding to it, but did not know at the time free-ing C >> memory from Ada (with Interfaces.C.Strings.Free) was a no-no. > I am pretty sure that in GNAT Interfaces.C.Strings.Free is an alias to > the C free; but there seems to be nothing in the ARM to guarantee > that. If you look cloesly at the GNAT Sources you will discover that GANT internaly uses malloc and free. But I am with Matthew here: On other compilers it might be different - so don't us that knowlege. With Regards Martin. -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com