comp.lang.ada
 help / color / mirror / Atom feed
* Gnat.Sockets.Stream memory "leak"
@ 2003-07-01 19:04 Jano
  2003-07-02  9:50 ` 
  0 siblings, 1 reply; 6+ messages in thread
From: Jano @ 2003-07-01 19:04 UTC (permalink / raw)


Okay, here I go.

I've spent today quite a time tracking down a memory leak. It has 
finally resulted it was exactly not a leak, only a misassumption on my 
part.

It happens that each call to Gnat.Sockets.Stream allocates a new stream 
object to return its access. 

My assumption was that, like the Ada.Streams.Stream_IO.Stream call, that 
Stream_access need not to be freed. Now, I see not any recommendation or 
note about the necessity of freeing these resources neither in Stream_IO 
nor in Gnat.Sockets. I'm mistaken about Stream_IO not needing the free? 
I've been naive about Gnat.Sockets silence about it?

And, as a side note, why doesn't exist a Stream_access type in 
Ada.Streams? I find somewhat inconvenient defining it in my packages and 
converting here and there.

Thanks!

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-07-07  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-01 19:04 Gnat.Sockets.Stream memory "leak" Jano
2003-07-02  9:50 ` 
2003-07-02 20:51   ` Jano
2003-07-04 10:23     ` 
2003-07-04 14:04       ` Jano
2003-07-07  8:39         ` 

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