comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Access Type
Date: Mon, 27 Dec 2010 18:53:26 +0100
Date: 2010-12-27T18:53:26+01:00	[thread overview]
Message-ID: <878vzbm7ah.fsf@ludovic-brenta.org> (raw)
In-Reply-To: m2r5d38kme.fsf@pushface.org

Simon Wright writes on comp.lang.ada:
> Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
>
>>    C_Function (Interfaces.C.To_C ("Ada string"));
>
> Is there a potential memory leak lurking here?

No, the char_array is on the stack and passed as a char* to the C
function.

-- 
Ludovic Brenta.



  reply	other threads:[~2010-12-27 17:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24 16:36 Access Type kug1977
2010-12-24 17:30 ` Robert A Duff
2010-12-24 20:59   ` kug1977
2010-12-24 22:06     ` Simon Wright
2010-12-27  1:50     ` Ludovic Brenta
2010-12-27 12:29       ` Simon Wright
2010-12-27 17:53         ` Ludovic Brenta [this message]
2010-12-27 18:15           ` Simon Wright
2010-12-27 20:03             ` Pascal Obry
2010-12-28 20:08               ` kug1977
2010-12-28 23:52                 ` Simon Wright
2010-12-29  8:46                   ` kug1977
2010-12-29 15:18                     ` Simon Wright
2010-12-29 15:27                       ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox