Next: 5 Linear algebra subroutines Up: 4 Dynamic memory management Previous: 4.2 Allocating memory

4.3 Releasing memory

The code
      call corlsr(ir1)
      ii2=icori(n2)
will release the memory block previously allocated at address ir1, as well as any subsequently allocated blocks. The allocation mechanism is just a simple stack, and so all that corlsr does is to move its current notion of the position of the top of this stack.

There is a corresponding routine corlsi which should be used for releasing pointers obtained from icori.


P.J. Knowles and H.-J. Werner
molpro-support@tc.bham.ac.uk
Jan 10, 2000