How to liberate CUDA Memory succesfully?

Screenshots of code snippets cannot be copied unfortunately so we are are unable to reproduce the issue. Clearing the cache works fine as seen in this post including a minimal and executable code snippet.