Which memory are you talking about? The memory allocated for EMIN will stay as such until you deallocate it.
As I suggested, you should use some other integrator than DIVPAG -- not because it is not up to the task, but because using it for a non-stiff problem is overkill and causes slower computing.
If the integrator (DIVPAG or an equivalent) allocates some memory that is saved, you should read the documentation for that information and take the prescribed steps to free that memory, if necessary.
You should really read the IMSL documentation and a good Fortran manual in order to work on a project of such complexity.