Releases memA, memB and memC[i] objects.
Merge branch 'master' into tests