for k = 0:10
  mem = memory();
  printf ("iter: %d, mem_used: %g\n", k, mem.mem_used_octave);
  fflush (stdout);
  leak_main_fcn (rand (4000));
endfor

printf ("------------------------------------------------------\n");
mem = memory();
printf ("iter: %d, mem_used: %g\n", k, mem.mem_used_octave);
