X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=examples%2Floadpage.ml;h=6f8db96072efc63a8096c692b3fb8c2c71c210db;hb=ebb3016e3da6fffa7fb7954f55295bb1640bd237;hp=4007f8d377d6bfb737fd66a6ebf02456874465ac;hpb=9e88eacb7d2a8883900fba0c8abedc26c7510d98;p=perl4caml.git diff --git a/examples/loadpage.ml b/examples/loadpage.ml index 4007f8d..6f8db96 100644 --- a/examples/loadpage.ml +++ b/examples/loadpage.ml @@ -1,7 +1,7 @@ (* Example program which uses LWP::UserAgent and HTML::TreeBuilder to * download an HTTP page and parse it. * Copyright (C) 2003 Merjis Ltd. - * $Id: loadpage.ml,v 1.3 2003-10-15 16:51:12 rich Exp $ + * $Id: loadpage.ml,v 1.5 2003-12-11 17:41:52 rich Exp $ *) open Printf @@ -56,5 +56,5 @@ let () = in print tree; - (* Destroy the Perl interpreter. *) - Perl.destroy (Perl.current_interpreter ()) + (* Perform a full collection - good way to find GC/allocation bugs. *) + Gc.full_major ()