memory leak bug fixes
This MR fixes a memory leak in the GPU code, which manifested itself e.g. in the lda_u/02-ACBN0.01-nio.inp test.
memory leak bug fix
- I have checked that my code follows the Octopus coding standards
- I have added tests for all the new features added in this request.