> Date: Thu, 6 Feb 2003 11:46:05 -0500
> From: Junchao Xia <[log in to unmask]>
> Hi everyone,
> I am a new user of Fortran 90.
> I have a program which produces the int single-linked list very often.
> And I found the memory is getting biger and run out of it at last.
> I am sure that I deallocated the int node when I removed it. But I only
> nullify the head and the tail of the int list when I don't need the int
> list. Do the int nodes still own memory after I nullify the head and the
> tail? If do, how can I release the memory of an int list? Deallocate
> the int list or deallocate the int node one by one?
You need to deallocate every node in the list.
Any nodes that are not deallocated will remain and will occupy
storage (until the program terminates, of course).
> Thanks.
>
> Junchao Xia
|