fixed memory leak for list of tensore save

added mxDestroyArray