Version française
Home     About     Download     Resources     Contact us    
Browse thread
OCaml memory leak issue
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Edgar Friendly <thelema314@g...>
Subject: Re: [Caml-list] OCaml memory leak issue
On 11/23/2010 07:54 PM, Kecheng wrote:
> let test  =
>     let a = 1 in
>     let b = a + 5 in
>     printf "%d\n" b;
> ;;
> test;;
This will finish with a bunch of allocated memory missing pointers to 
it.  But that's not a problem, because OCaml's GC is capable of freeing 
this memory, as opposed to a C program, which would need a pointer to 
the memory to free() it.

E.