From: Simon Wright <simon@pushface.org>
Subject: Re: Access Type
Date: Mon, 27 Dec 2010 18:15:27 +0000
Date: 2010-12-27T18:15:27+00:00 [thread overview]
Message-ID: <m2mxnr84lc.fsf@pushface.org> (raw)
In-Reply-To: 878vzbm7ah.fsf@ludovic-brenta.org
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> 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.
I guess I was thinking of Interfaces.C.Strings.chars_ptr.
next prev parent reply other threads:[~2010-12-27 18:15 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
2010-12-27 18:15 ` Simon Wright [this message]
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