> should I free memory / variables / do other actions, other that free to any variable that i did memory allocation to? >
Call free and use MxDestroyArray, and you should be fine. I believe the later is even not necessary because Matlab should automatically destroy the one use forget to do. I always do that manually though.