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-Thread: 103376,fe0d58e5e40e10c7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news.uni-jena.de!not-for-mail From: Christopher Broeg Newsgroups: comp.lang.ada Subject: Re: many exceptions cause memory leak? Date: Wed, 26 Oct 2005 14:45:03 +0200 Organization: Friedrich Schiller University Jena, Germany Message-ID: References: NNTP-Posting-Host: ent.astro.uni-jena.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: lc03.rz.uni-jena.de 1130330704 21102 141.35.25.76 (26 Oct 2005 12:45:04 GMT) X-Complaints-To: abuse@uni-jena.de NNTP-Posting-Date: Wed, 26 Oct 2005 12:45:04 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050921 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:5956 Date: 2005-10-26T14:45:03+02:00 List-Id: Hi everybody, I finally found the (second) reason for the memory leak: I was calling HDF5 library (c version) functions. When a string was needed I passed it using name => cs.new_string("whatever") this created a new c-pointer and i didn't deallocate it. Stupid mistake, really. It is the first time I call foreign libraries, so I didn't comprehend fully what the new_string does. Thank you all very much for your help! chris