Hi Janus,
the patch in the attachment fixes a memory leak by auto-deallocating the allocatable components of an allocatable intent(out) argument.Regtests cleanly on x86_64-linux-gnu. Ok for trunk?
OK for trunk. Also (because this is a quite serious bug)
OK for gcc 7 after the release of 7.1.
Thanks for the patch!
Regards
Thomas
