Removed bugged free-call in ForLoop
fixed typo
Added release of memory for arguments that are allocated as mem-buffers